LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2004, 12:34 PM   #1
bnorton787
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Question 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
 
Old 02-20-2004, 12:39 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
What are the permissions for /home?
ls -l /
 
Old 02-20-2004, 12:41 PM   #3
bnorton787
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks RobertP
/home is drwxr-xr-x (755)

Last edited by bnorton787; 02-20-2004 at 12:43 PM.
 
Old 02-20-2004, 03:30 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
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!
 
Old 02-20-2004, 07:01 PM   #5
bnorton787
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks RobertP
Sometimes silly is just the right medicine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache UserDir public_html problem aeshley Linux - Newbie 4 11-29-2004 02:58 AM
SKEL?! I found /etc/skel directory sbogus Linux - Security 3 07-27-2004 01:50 PM
blfs /etc/skel permissions cuco76 Linux From Scratch 3 07-07-2004 05:20 PM
Problem with Apache and public_html MiB_24 Linux - General 3 07-28-2002 01:33 AM
apache UserDir public_html problem aeshley Linux - Networking 4 01-17-2002 04:43 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration