LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-06-2005, 02:27 PM   #1
glabiche
LQ Newbie
 
Registered: Jun 2005
Location: Mauritius
Distribution: fedora
Posts: 3

Rep: Reputation: 0
Question Setting initial file permissions


Hi everyone

I have just set up a fedora core 3 server and I need users of a group to be hable read and write access within certain directories. How can I set the initial permissions to eg. 770, so that all new files created by a group member will be set to 770 without using the command chmod ?

regards

georges
 
Old 06-06-2005, 03:00 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
your looking for umask
 
Old 06-06-2005, 03:58 PM   #3
mattLSO
Member
 
Registered: Jun 2005
Posts: 43

Rep: Reputation: 15
Hey there,

you could either add it to /etc/skel/.bash_profile or edit /etc/profile and put the following like

umask u=rwx,g=rwx,o=

Regards
 
Old 06-07-2005, 12:10 AM   #4
glabiche
LQ Newbie
 
Registered: Jun 2005
Location: Mauritius
Distribution: fedora
Posts: 3

Original Poster
Rep: Reputation: 0
RE initial files permissions

Thanks

But if i set umask in /etc/profile will it not change the permission for all the new files. I want only to set this permission for certain folders
 
Old 11-28-2005, 04:11 PM   #5
Kronocide
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
I have the same issue. I have a group of users who share responsibility for files in some directories. A file created by one user in those directories should be writeable to the others in the group. Is there no way to make this happen without the user running chmod each time? I have set the sgid bit on the directory so that all files created in the directory are owned by the admin group, but that group still only has r-- rights by default.
 
Old 11-29-2005, 05:37 AM   #6
Kronocide
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
I'm getting the feeling that this is simply not a solvable problem in Linux. (Bar running a chmod script in root's cron or something.)

If umask is a user setting, then maybe you could change the umask temporarily while doing this admin work with a script, say "webadm -enable" and "webadm -disable", so you get the right rights while working with the relevant files?
 
  


Reply



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 file permissions so Apache can serve my files thomasfingram Linux - Security 6 12-06-2005 05:54 PM
Need help regarding setting Perl and file permissions... mrbadi Programming 1 07-30-2005 04:43 PM
Need help regarding setting Perl and file permissions... mrbadi Linux - Software 1 07-26-2005 01:03 PM
setting permissions on a file after uploading via FTP dgsr2002 Linux - Newbie 4 10-21-2004 07:15 PM
Automatically Setting File Permissions in a Directory maneeshsethi Linux - Security 2 05-27-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:47 PM.

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