LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access rights (https://www.linuxquestions.org/questions/linux-newbie-8/access-rights-40068/)

sore 01-02-2003 07:30 AM

Access rights
 
I have sett up an apacheserver and use ftpd to upload files to it. For this I made a special user with access rights to the apache webfolder.

My problem is now that the files gets no execute or read rights for user, users or group.

The access rights look like this rw-r----- instead of rwxr-xr-x.

Can someone lead me in the right direction here please.

trickykid 01-02-2003 08:16 AM

Your looking for umask.

man umask for more details.

sore 01-02-2003 09:10 AM

If I do umask 000 loged in as the user who should be changed, do I then set the default access permissions for all future files created by that user to 777?

trickykid 01-02-2003 09:21 AM

Well if you want it to be rwxr-xr-x you might want to consider 022. With a 000 you would give everyone full access but unless that is what you want ??

sore 01-02-2003 09:46 AM

but when I just do umask I get the answer 022. So I already have this set I guess. This is the default state or not?

But I then dont understand why the files I upload gets another state (711 I think). Does it have anything to do with that I upload from XP or is it maby a setting in ftpd?

trickykid 01-02-2003 10:18 AM

Could be a possible setting with FTP then.. check your config files. Wouldn't or don't think it would be caused by XP.

sore 01-02-2003 10:31 AM

ok thank you for the help


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