Link to home
Start Free TrialLog in
Avatar of teknow
teknow

asked on

Adding User

solaris 7 (latest version) after I create my user via editing the passwd file, and then try to run passwd to give the user an encrypted password, it tells me passwd(system): mperez does not exist. Permission denied.  it may also be worth noting I couldn't create my users home directory either.  Does the home directory need to be mounted to create a directory?  because I umounted before and only til then could I create a directory under /home. Please advise.
Avatar of teknow
teknow

ASKER

when I try to run "mount" on home, it says, " my partition ( and I've tried every one) is already mounted, and home is busy, allowable number of mount points have been exceeded.
editing /etc/passwd is not enough, you need to edit /etc/shadow too, or use a tool (see man usermod, useradd)

Why do you want to mount what is already mounted?
You could also use the X interface "admintool" it will ask you for all the necessary information. Just fill in and you will be on. By default ... the home directory on Solaris is /export/home/username

ASKER CERTIFIED SOLUTION
Avatar of pderrick
pderrick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The reason you can't mount or use /home is because of automountd.  If you go to /home and perform an ls -al you'll notice that it looks similar to this:

dr-xr-xr-x  20 root     root         512 Jan  2 14:53 .
drwxr-xr-x  26 root     root        1024 Jan 14 13:51 ..

This is because the automount daemon currently has control over the filesystem.

I sent this to you already but I don't see it here and I am a bit new to this so I thought, to be anal is to be sure....so I'm gonna repost it here.

I would go into /etc/init.d and perform the following:

/autofs stop

I would permanently keep this from starting up by renaming the startup script in /etc/rc3.d/S74autofs to /etc/rc3.d/autofs74s

ie: mv /etc/rc3.d/S74autofs /etc/rc3.d/autofs74s

Then you should be able to add to your home directory.  As for adding your account I would not suggest adding yourself manually.  Instead use admintool (which is the GUI tool.)  Use the useradd command to add yourself via command line.
erm...by the way...that is supposed to be a (dot slash) "."/autofs stop.  It looks like I just put a /autofs...
It just didn't post correctly.