Thread: Home Directory

    #1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    702
    Rep Power
    96

    Home Directory


    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?

    Thanks,
    Evan
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Originally Posted by epanagio
    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?

    Thanks,
    Which BSD are you using this with. Also, is this useradd or adduser?
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Middle Europa
    Posts
    1,200
    Rep Power
    14
    hello
    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.

IMN logo majestic logo threadwatch logo seochat tools logo