Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-27-2004, 10:17 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 25

Rep: Reputation: 15
Automatically Setting File Permissions in a Directory


I am trying to get my files from home to school by setting up a webserver with directory listing enabled. I got the webserver working, but the problem is that whenever I transfer files to my webserver (typically sent from a windows machine to the linux machine), the file permission is automatically set to RW for user and R for group. I would like it to be automatically set to R for others as well so I can access the files from other computers.

How can I automatically set the file permissions without having to right click on each file and adjust the settings manually?


Old 05-27-2004, 11:16 AM   #2
LQ Newbie
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
maybe set the umask for the user?

man umask
Old 05-27-2004, 08:42 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 25

Original Poster
Rep: Reputation: 15

Umask is set to 22, and whenever I create a new file, the proper permissions are set. The problem only occurs when I drag a file from my Windows Machine to my Linux file. What else should I try?



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
setting directory permissions at start redrobin77 Fedora 1 11-05-2005 02:26 PM
trouble setting directory permissions goodolday Linux - General 1 04-26-2005 05:06 PM
Need help setting permissions for a directory imsam Linux - Newbie 6 12-08-2004 11:37 AM
Setting permissions for directory ch4s3r Linux - Software 5 08-19-2004 04:37 PM
Setting Directory Permissions is Hard ! dpaille Linux - General 1 12-12-2002 02:03 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:31 AM.

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