LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-21-2004, 11:28 PM   #1
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Rep: Reputation: 15
Arrow How to set umask value to 0007


I have installed Redhat Linux 9 on my server and using Samba 3.0.7 as PDC for our network, I have shared a lot of directory for samba users under data directory I have given access to a folder to perticular group and I set umask value to umask 0007 through CLI, it's works well on the directory before the umask value updated, but if someone in the group create a new folder in it others on the same group cloud not do any changes or write anything under the directory created. To come over this peroblem either I have to run umask 0007 every now and then or enter the command chmod -R 770 newdir.I feel this not a good method to follow in a live environment. I would appreciate if anyone can help me in this regard.
 
Old 12-22-2004, 10:00 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I think that adding umask to user profiles (user starting scripts) may help.
 
Old 12-27-2004, 06:17 AM   #3
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your reply ~ can you please explain clearly how to add it in the users profile..
 
Old 12-27-2004, 08:05 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can either change the umask value in /etc/profile which affects all users, or create for a user a ~/.profile and put umask 0007 in it.
 
Old 01-11-2005, 12:15 AM   #5
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your reply
 
  


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
ProFTPD: Set umask so that directories are created with 'sticky bit' on. dutch2005 Linux - Software 1 09-06-2005 05:06 AM
Set umask for user in KDE jferrando Linux - Security 2 01-12-2005 10:41 AM
How to set defaul UMASK 037 sbrewer Linux - Software 2 09-15-2004 12:26 PM
can you set a default umask for only certain directories? BrianK Linux - General 3 06-14-2004 09:02 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 05:10 PM

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

All times are GMT -5. The time now is 10:16 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