Mailinglist Archive: opensuse (4398 mails)
| < Previous | Next > |
RE: [SLE] Setting umask upon user login?
- From: "Greg Wallace" <jgregw@xxxxxxxxxxxxx>
- Date: Tue, 6 Sep 2005 20:09:22 -0800
- Message-id: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAFi/9+yIBsUe66x5a7uVsecKAAAAQAAAAomrXBV7TQ0iC0V5KxfInAAEAAAAA@xxxxxxxxxxxxx>
On Tuesay, September 06, 2005 @ 1:26 PM, Jay Paulson wrote:
>>> Well FC3 does it with the /etc/bashrc file. It just looks to see if
>>> the user logging in has the same default usergroup as their username.
>>> If so set the umask to 002 otherwise set it to 022. It does this for
>>> every user when logging in. However, the why SuSE's users and how
>>> they
>>> are put in the default group users doesn't make this work. Therefore,
>>> I was looking at how I can do this in SuSE like FC3 does it. I guess
>>> I
>>> could edit the /etc/profile file and write a small script that said if
>>> the user is in the users group then set the umask to 002. Though I
>>> think this would probably cause more problems especially if the file
>>> gets over written like another said in this thread.
>> You should not edit /etc/profile or /etc/bash.bashrc
>> You do not need to set a script. You can do virtually the same thing
>> in SuSE
>> as you did in FC3. The main difference is whether to put it
>> into /etc/profile.local or /etc/bash.bashrc.local.
>Very cool! :) I noticed that my system doesn't have either
>/etc/profile.local or /etc/bash.bashrc.local. Do I just create one or
>both of those file and it should work?
>jay
Yes
Greg Wallace
>>> Well FC3 does it with the /etc/bashrc file. It just looks to see if
>>> the user logging in has the same default usergroup as their username.
>>> If so set the umask to 002 otherwise set it to 022. It does this for
>>> every user when logging in. However, the why SuSE's users and how
>>> they
>>> are put in the default group users doesn't make this work. Therefore,
>>> I was looking at how I can do this in SuSE like FC3 does it. I guess
>>> I
>>> could edit the /etc/profile file and write a small script that said if
>>> the user is in the users group then set the umask to 002. Though I
>>> think this would probably cause more problems especially if the file
>>> gets over written like another said in this thread.
>> You should not edit /etc/profile or /etc/bash.bashrc
>> You do not need to set a script. You can do virtually the same thing
>> in SuSE
>> as you did in FC3. The main difference is whether to put it
>> into /etc/profile.local or /etc/bash.bashrc.local.
>Very cool! :) I noticed that my system doesn't have either
>/etc/profile.local or /etc/bash.bashrc.local. Do I just create one or
>both of those file and it should work?
>jay
Yes
Greg Wallace
| < Previous | Next > |