You are here
civilmann - Fri, 2011/10/14 - 04:17
I am trying to change to default Home directories when creating new users with no success. I've tried the ect/default/useradd file as well as looking in the smb.conf file witch says that another script file called /usr/sbin/useradd is controling it. I do not know enough about the useradd script to change it to get the results I'm looking for. I want to make the default home diretories /media/Raid1/home instead of /home so that all new users will have thier home directories created in subs of that dirertory named after the user. Can any one help?
Thanks
Forum:
Tags:
two suggestions
I have two suggestions for you
I would probably go the symlink route
AFAIK editing /etc/default/useradd should do it
So not sure why it's not working for you. Perhaps try searching/posting in the Ubuntu forums. Perhaps this is an Ubuntu 10.04 (basis of TKL v11.x) idiosyncracy
In the meantime you can use the -d switch to define the user home directory when using useradd. eg
(the -m switch creates the directory).
You can also do this in Webmin: System >> Users & Groups >> Create new user and set the directory.
Obviously this doesn't help you re your query on how to make it the default location but it will get you going.
Also (as you may already be aware) to use the new user 'newuser' with Samba you will need to sync Linux users and Samba users (Samab maintains its own user database).
Add new comment