Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Permission and New Files
Name: nkid Date: August 25, 2005 at 22:20:43 Pacific OS: Ubuntu CPU/Ram: A3200/512
Comment:
I set up a box to be a server and now I'm creating all the files I need for the website. I'm using remote access to go in do the designing. My problem right now is that everytime I make a file using remote access the files I create do not have the read permission for others. This causes a problem as the user that's running apache, I'm assuming is nobody, can't read it and thus I get a file permission error when I try to look at it. How do you make it so the files you create in the future have the same permissions?
Name: 3Dave Date: August 26, 2005 at 02:29:14 Pacific
Reply:
I have never used remote access (remote desktop?) but thought it was just a vncserver so it is the same as though you are sitting at the remote machine in person.
Depending on your file system type you may want to look at the mounting options in /etc/fstab. Possibly pass a grpid equal to a group that the user "nobody" is in. If using samba to transfer files check your "create mask" and "directory mask" values in smb.conf.
0
Response Number 2
Name: nkid Date: August 26, 2005 at 15:56:30 Pacific
Reply:
Actually I just set up vsftp and I use Zend to log into it. When I said remote access I was just referring to accessing it remotely, not any remote desktop or anything. So which do I have to look at? /etc/fstab or vsftp?
Hello world!
0
Response Number 3
Name: 3Dave Date: August 30, 2005 at 02:59:06 Pacific
Reply:
man umask
You will want to use something like "umask 0022" for rw-r--r-- file permissions.
0
Response Number 4
Name: nkid Date: September 1, 2005 at 18:51:05 Pacific
Reply:
Thank you, I did some research last night and I figured it out. My main problem was that I was using vsftp and by defaut it sets umask to 077, so it was all private. I fixed it and now things are working fine. Thanks for the help.
Summary: Hi again Steady i just noticed that you may have trouble installing the Java runtime Environment here it is after you download the Java runtime environment (1)type: chomd a+x j2re-1_4_2-beta-linux-i5...
Summary: To a folder in the home directory that i have setup to share through Samba. Have set the permission to share ans not user as i have one user setup on the XP machine. Can read and open files in this sh...