Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 11-18-2005, 08:13 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 19

Rep: Reputation: 0
[SOLVED] Permissions with umask


if i type

$ 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 08:47 PM.
Old 11-18-2005, 08:27 PM   #2
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.


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

All times are GMT -5. The time now is 05:29 PM.

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