LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   useradd etc/skel public_html permissions problem (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-etc-skel-public_html-permissions-problem-148422/)

bnorton787 02-20-2004 11:34 AM

useradd etc/skel public_html permissions problem
 
Using:
Trustix Linux
Apache 2.0

Trying to:
adduser(s) to a web server (I have about 150 to add).

Problem:
using the etc/skel directory I automatically add a public_html directory and index.htm file. In the etc/skel directory both the public_html and the index.htm file are 755. In the user's directory the public_html folder is 701? (rwx --- --x).

Please help, I don't want to do 149 chmod(s).

Thanks

RobertP 02-20-2004 11:39 AM

What are the permissions for /home?
ls -l /

bnorton787 02-20-2004 11:41 AM

Thanks RobertP
/home is drwxr-xr-x (755)

RobertP 02-20-2004 02:30 PM

As root
#for f in /home/*; do chmod 755 $f/public_html $f/index.htm ; done

I know it is silly, but it should work!

bnorton787 02-20-2004 06:01 PM

Thanks RobertP
Sometimes silly is just the right medicine.


All times are GMT -5. The time now is 06:01 PM.