LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-18-2005, 07:13 PM   #1
NullDevice23
LQ Newbie
 
Registered: Feb 2005
Posts: 19

Rep: Reputation: 0
[SOLVED] Permissions with umask


hi,

if i type

Code:
$ umask 002
$ touch hello
$ ls -l
-rw-rw-r--   1 myname mygrp      0 Nov 19 02:16 hello
The umask is what u subtract from a octal chmod value right? Where is the "x" execute then? I set it to 0 for owner and group, they still dont have the execute permission set.

-> ?? Why

Last edited by NullDevice23; 11-18-2005 at 07:47 PM.
 
Old 11-18-2005, 07:27 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
because by default files are not executable - would be pretty useless to have all text files, jpg files, etc. executable :-)

you have to "chmod +x" or use a program being "clever" enough to know it creates executble files (e.g. gcc :-) to set the "x" bit.
 
  


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
fstab, umask and users permissions foucault Linux - Security 3 11-03-2005 01:13 AM
Umask and Linux Default Permissions Sandoomaphone Linux - Security 9 08-23-2004 04:48 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 05:10 PM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 11:03 AM
Umask def1014 Linux - Security 3 06-21-2002 04:05 AM

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

All times are GMT -5. The time now is 12:50 AM.

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