September 30th, 2009, 07:12 PM
Using the command adduser I create a user, visitor, but when I log in the home directory is not the /home/visitor. What do I have to do to change so when the user logs in goes into /home/visitor?
October 6th, 2009, 02:43 PM
Which BSD are you using this with. Also, is this useradd or adduser?
Originally Posted by epanagio
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
December 9th, 2009, 08:17 AM
i don't like such (stupid)tools, mostly bad written shell-scripts...
try to learn unix
for a new user you need 5 steps
1, edit /etc/passwd and append the new user
you can duplicate an existent user, delete the passwd field, change its uid, gid, gecos, home-dir...
2, edit /etc/groups, appropriately add the new user
3, mkdir the home-dir of this new user
maybe in /export/home or /home or ....
4, chmod -R newuserid:newusrgid user-home-dir
5, set the passwd of newuser using the /bin/passwd cmd
manual pages helps you
working on Solaris[5-9], preferred languages french and C.