LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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, 01: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, 02: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, 05:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,671
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
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


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


All times are GMT -5. The time now is 11:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration