Click to See Complete Forum and Search --> : adding to the adduser script?


Soybomb
12-28-2000, 05:21 PM
I'm setting up a RedHat 6.2 machine that will be serving up user's webpages in part. I added a public_html directory in /etc/skel/ so when adduser is used that is created in their home directory. Each new user that is added though needs the permissions of the /home/user/public_html directory changed by doing:
chmod 701 /home/username
chmod 751 /home/username/public_html

Is there a way I can make those permissions be set to that directory to each new user? Setting them like that in skel doesn't make the permissions carry over it seems.

manux
12-28-2000, 07:26 PM
chroot?

Soybomb
12-28-2000, 07:30 PM
Doesn't chroot change the root directory of the whole filesystem? I'm just wanting to have a chmod command run after or during the adduser sequence of events. There has to be a conf file or something I'd imagine I was guessing. Anyone?

Soybomb
12-29-2000, 12:19 AM
*cough* SoyBUMP *cough*

Soybomb
12-29-2000, 06:16 PM
Last bump.....anyone? Please!?!? http://www.linuxnewbie.org/ubb/smile.gif

Whipping Boy
12-29-2000, 06:27 PM
You need to change the owner and the group of the directories, not the mode.

man chown
man chgrp

------------------
Kurt Weber
Shell scripts? Shell scripts? We don't NEED no stinkin' shell scripts!
White, heterosexual, middle-class, and proud!
I've never understood why Bill Gates would name his company after his penis