April 13th, 2004, 08:08 AM
alow regular user access without comprimizeing security of permissions
Without comprimizeing the security I want a user to have write access to the content folder for apache. However I cannot achive this, and need assistance. I want my user account to have write permisions to /var/www/html
I decided to create a webaster group, make the user a member of the new group then change ownership of /var/www/html:
However I am unable to write to that folder.
chown -R :webmaster html
chmod -R 775 html
atapi103 should have write access to html correct? How can I alow atapi103 to have write access, without comprimizeing the security as to allow other unauthorized users access?
atapi103 [/var/www]$ ls -l
drwxr-xr-x 2 root root 4096 Nov 19 08:40 cgi-bin
drwxr-xr-x 3 root root 4096 Apr 3 04:32 error
drwxrwxr-x 3 root webmaster 4096 Nov 19 08:40 html
drwxr-xr-x 3 root root 4096 Apr 3 04:33 icons
drwxr-xr-x 14 root root 4096 Apr 3 04:39 manual
atapi103 [/var/www/html]$ gedit index.htm
Cannot create the file "/var/www/html/index.htm".
Make sure you have the appropriate write permissions.
April 13th, 2004, 08:12 AM
A short list of checks to make first:
pre: make sure to do this as su root
1. make sure you are in /var/www/
2. chgrp -R webmaster html
3. chmod -R 775 html
4. double check your /etc/group file that the proper name (spelling included) is correctly placed in the group. I know you did this, but run a double check for spacing errors or typos.
April 13th, 2004, 08:25 AM
Ok I did everything as you said, I also double checked /etc/group and made sure there were no spaces or formating errors.
I noticed after the line webmaster:x:502:root,atapi103 there was a blank line following, so I placed the cursor to the end and hit delete to make sure webmaster:x:502:root,atapi103 was the very last line, but that made no difernce
April 13th, 2004, 08:26 AM
Are you stuck in Commandline, or do you have a DM present (such as kde or gnome)
April 13th, 2004, 08:27 AM
I have gnome, I am using the terminal provided.
April 13th, 2004, 08:30 AM
Can you do me a favor? Copy and paste a section of your /etc/group?
I want to make sure the layout for your groups are identical. I understand you used the groupadd command, but better safe than sorry. Not all of it, just a few normal lines like the sys group and wheel group.
April 13th, 2004, 08:36 AM
Ok here is my /etc/group will all the fat cut out, I attached is the full also
April 13th, 2004, 08:39 AM
Everything checks out, permissions, group settings, etc etc.
Have you thought of a compelte reboot? Sometimes there are odd settings in httpd servers and other services in which they have to be literally restarted (along with the user) to reset the permissions level.
Beyond doing that, everything should be working, as it is a textbook permissions change in which you preformed perfectly.
April 13th, 2004, 08:48 AM
Ok I did the reboot and that solved it No more error
I deeply thank you, I was getting fusterated. Much apreciation.
April 13th, 2004, 08:57 AM
Glad I could help
(and people say linux never needs to be restarted ppfft)