Mailinglist Archive: opensuse (4634 mails)

< Previous Next >
Re: [opensuse] setting file permissions/umask
  • From: Darryl Gregorash <raven@xxxxxxxxxxxxx>
  • Date: Tue, 19 Dec 2006 01:21:56 -0600
  • Message-id: <45879314.9030506@xxxxxxxxxxxxx>
On 2006-12-19 00:08, Felix Miata wrote:
> Where's the right place to do this in 10.2:
> 1-globally
> a-/etc/profile?
> b-/etc/profile.local?
> c-/etc/bashrc?
> d-elsewhere?
>
/etc/profile.local
> 2-per user
> d-~/.bashrc?
> e-~/.bash_profile?
> f-~/.profile?
> g-elsewhere?
>
~/.profile
> How do I find out the current umask setting without creating a new file
> and examining its permissions? It doesn't seem to exist in the output of
> the set command.
>
umask

For the next two, if you want it done recursively in all subdirectories,
add --recursive or -R to the commandlines.
> I want all regular files in a particular public directory to be
> rw-rw-r--. How do I set that up?
>
chmod 0664 <dirname>/*
> I want all regular files in a particular public directory to have one
> particular owner and group. How do I set that up?
chown username:groupname <dirname>/*

--
The best way to accelerate a computer running Windows is at 9.81 m/s²

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References