Re: [SLE] default execute permission

From: Ryan McCain (Ryan.McCain_at_dss.state.la.us)
Date: 01/11/05

  • Next message: Mike: "Re: [SLE] DVDxRW drives for backup"
    Date: Tue, 11 Jan 2005 09:10:49 -0600
    To: <suse-linux-e@suse.com>
    
    

    Thanks both of you for the assistance.

    Ryan

    >>> Randall R Schulz <rschulz@sonic.net> 1/10/2005 8:23:21 PM >>>
    Ryan,

    On Monday 10 January 2005 14:27, Ryan McCain wrote:
    > Hello,
    >
    > Im using SLES 8. My system umask is set to 022. When a file is
    > created the permissions are set to -rw-r--r--. How can I make it so
    > that any new file created is executable by the owner?

    Nothing you can do will accomplish that. There is the umask mechanism
    (as Carlos pointed out), but it operates by _removing_ permission bits

    when files are created. The program that creates the file will use
    permissions like 0666 for plain files and 0777 for executable files and

    directories.

    Thus, you'll find that linker ("ld") output is executable (with umask
    bits turned off, of course) but that ordinary text files created by a
    text editor will not. If such files are scripts, then you'll have to
    add the execute bits yourself:

    % chmod +x scriptFile

    There's basically nothing you can do to work around this mechanism,
    since it's a matter of both the creating application and the
    kernel-imposed umask mechanism. Apart from the umask setting itself,
    none of this is within your control.

    > Thanks,
    > Ryan

    Randall Schulz

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com 
    Also check the archives at http://lists.suse.com 
    Please read the FAQs: suse-linux-e-faq@suse.com 
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Mike: "Re: [SLE] DVDxRW drives for backup"

    Relevant Pages

    • Re: [SLE] default execute permission
      ... but it operates by _removing_ permission bits ... If such files are scripts, ... add the execute bits yourself: ... kernel-imposed umask mechanism. ...
      (SuSE)
    • Re: Secure Web-Based Administration
      ... Ryan wrote: ... >use it for a lot of other things) to assist me in administering my linux ... What are some ways that I can execute certain administrative ... >(which doesn't run as root and I want to keep it that way) to execute ...
      (Focus-Linux)
    • Re: execute command on variable...
      ... # Pretty new here and im trying to understand on how to execute a command ... SM Ryan http://www.rawbw.com/~wyrmwif/ ... This is one wacky game show. ...
      (comp.unix.programmer)
    • Timed Event
      ... Is there a way I can execute a stored procedure every 10 seconds, ... I don't want to create a Database Job. ... Ryan ...
      (microsoft.public.sqlserver.programming)