LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2002, 09:43 AM   #1
def1014
Member
 
Registered: Apr 2002
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48

Rep: Reputation: 15
Question Umask


I'm trying to set the default umask on a directory as 775. The default umask is 666 right now. From what I have read on the net all I can find is how to subtract from the default to get the permissions I want. i.e. umask 022 would change default to 644. But how can I increase the 6 to a 7? These are html files so I need the execute permission.
 
Old 06-20-2002, 12:10 PM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you need to tell us first from what are you trying to set umask
oterwise for 775 you 002,
but in your case you probably have troubles with the program that is trying to assing mask
 
Old 06-20-2002, 01:55 PM   #3
def1014
Member
 
Registered: Apr 2002
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48

Original Poster
Rep: Reputation: 15
Yes that would work on a directory but not on a file. I want .html files created by users to automatically have the 775 permission. Is that possible? If I put this in my /etc/profile it would make the 775 permission a system wide default, can I do it for just one directory? Thanks.
 
Old 06-21-2002, 04:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
umasks in the global and personal profile can't be used for one dirs contents only; it aint selective, but you could use a cronjob to chmod 644's to 775's.

Kinda beats me *why* you would want it. Html files dont need to be executed.
 
  


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
umask trophy Linux - General 1 04-03-2004 01:17 AM
umask=0,0,0 demmylls Linux - General 2 09-15-2003 12:13 PM
Umask robyso Linux - Security 1 07-14-2003 02:33 PM
umask Spaz17 Linux - Newbie 1 07-04-2003 10:12 AM
umask knueven7 Linux - Newbie 8 04-18-2003 07:30 AM

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

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