Computing.Net > Forums > Linux > Permission and New Files

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

Reply to Message Icon

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?




Sponsored Link
Ads by Google

Response Number 1
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.

Hello world!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Permission and New Files

How do I use tar.gz and .bin files? www.computing.net/answers/linux/how-do-i-use-targz-and-bin-files/19660.html

RH9 and sharing files www.computing.net/answers/linux/rh9-and-sharing-files/23699.html

How to burn .cue and .bin files www.computing.net/answers/linux/how-to-burn-cue-and-bin-files/14222.html