Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dadmin problems

Status
Not open for further replies.

lrivastvg

Programmer
Nov 20, 2009
4
MX
I have a S8300 release 5.0. When I try to go with dadmin appears this message:

No directory /var/home/dadmin!
Logging in with home = "/".
-bash: /var/home/dadmin/.bash_profile: Permission denied
-bash-3.00$

I connected with another session (prof18) and I tried this:

cmuserdel dadmin
cmuseradd dadmin
cmpasswd dadmin

But didn't work
 
Code:
avaya@S8300> /bin/ls -l /var/home
total 28
drwx------  2 avaya  susers 4096 Jul  2 12:50 avaya
drwx------  2 cust   susers 4096 Aug 25  2009 cust
drwx------  3 [COLOR=#CC0000]dadmin susers[/color] 4096 Jan 20  2011 dadmin
drwxrwxr-x  3 root   susers 4096 Jul  2 12:54 defty

[b]what does yours show for the dadmin entry?[/b]
A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

40 years Bell, AT&T, Lucent, Avaya
Tier 3 for 30 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
This shows me:

Red Hat Enterprise Linux ES release 4 (Nahant)
Kernel 2.6.11-AV24 on an i686
login: telecom
Password:
Last login: Thu Sep 10 17:56:38 from 10.123.114.6
Thu Sep 10 18:01:43 CDT 2015
Enter your terminal type (i.e., xterm, vt100, etc.) [vt100]=>vt100
22418: old priority 0, new priority 0

telecom@s8300> /bin/ls -1 /var/home
cust
dadmin
defty
dicr
remote
telecom


Telecom is a prof18 account
 
-l is a lower case "L"
try again

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

40 years Bell, AT&T, Lucent, Avaya
Tier 3 for 30 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
telecom@s8300> /bin/ls -l /var/home/ total 28 drwx
/bin/ls: total: No such file or directory
/bin/ls: 28: No such file or directory
/bin/ls: drwx: No such file or directory
/var/home/:
total 48
drwx------ 2 1003 prof2 4096 Jun 19 2008 cust
drwx------ 2 1004 susers 4096 Jun 19 2008 dadmin
drwxrwxr-x 2 root susers 4096 May 20 2008 defty
drwx------ 2 dicr susers 4096 Apr 30 2010 dicr
lrwxrwxrwx 1 root root 14 May 20 2008 sa -> /mtce/login/sa
drwx------ 2 telecom susers 4096 Sep 10 18:21 telecom
lrwxrwxrwx 1 root root 14 May 20 2008 vm -> /mtce/login/vm
 
First, try this:

cmuseradd super-user -C 18 telecom2
cmpasswd telecom2
cmuseradd super-user -C 18 telecom3
cmpasswd telecom3
ls -l /var/home

We want to make /var/home/dadmin change from 1004 to telecom2 or telecom3
If this works, you can login with the login that owns /var/home/dadmin
then "\rm -r /var/home/dadmin" and remove this directory. This will allow building
a new directory owned by dadmin by using command "cmuserdel dadmin" then "cmuseradd dadmin"
then "ls -l /var/home"



A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

40 years Bell, AT&T, Lucent, Avaya
Tier 3 for 30 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
telecom@s8300> cmuseradd super-user -C 18 telecom2
telecom@s8300> cmpasswd telecom2
Changing password for user telecom2.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
telecom@s8300> cmuseradd super-user -C 18 telecom3
telecom@s8300> cmpasswd telecom3
Changing password for user telecom3.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
telecom@s8300> ls -l /var/home
total 56
drwx------ 2 1003 prof2 4096 Jun 19 2008 cust
drwx------ 2 1004 susers 4096 Jun 19 2008 dadmin
drwxrwxr-x 2 root susers 4096 May 20 2008 defty
drwx------ 2 dicr susers 4096 Apr 30 2010 dicr
drwxrwxr-x 6 root root 4096 May 20 2008 ftp
drwx------ 2 remote remote 4096 Apr 28 2010 remote
lrwxrwxrwx 1 root root 14 May 20 2008 sa -> /mtce/login/sa
drwx------ 2 telecom susers 4096 Sep 10 18:21 telecom
drwx------ 2 telecom2 susers 4096 Sep 11 09:45 telecom2
drwx------ 2 telecom3 susers 4096 Sep 11 09:47 telecom3
lrwxrwxrwx 1 root root 14 May 20 2008 vm -> /mtce/login/vm
 
What I was hoping for here, was that 1003 and 1004 userids that own cust and dadmin folders to
change to telecom2 or telecom3. It did not happen.

You will need root permission to remove /var/home/dadmin folder
then, cmuseradd dadmin will add login dadmin and /var/home/dadmin that has proper directory and file
ownership and permissions.

The 5 Sep 15 13:15 thread has an example of what this should look like.
The fact that 1004 owns /var/home/dadmin with permissions of 755 does not allow a dadmin logon to
change directories to /var/home/dadmin which would execute bash profiles. A dadmin logon puts user
in "/" where there are no bash profiles. This is why dadmin is not working.

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

40 years Bell, AT&T, Lucent, Avaya
Tier 3 for 30 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
I can fix this for you. You will need a modem connected to the server before you contact me.

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

40 years Bell, AT&T, Lucent, Avaya
Tier 3 for 30 years and counting
[URL unfurl="true"]http://bshtele.com[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top