Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:28 AM
12-02-2002 05:28 AM
umask
My requirement is like this,
I set umask to 022 in /etc/profile, and this value should not be changed by any user. basically, the system values can be changed by users, but umask value should not change even the user has mentioned some other value in profile.
How to accomplish this
regards
chakri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:12 AM
12-02-2002 05:12 AM
Re: umask
you can't.
users can override the umask value set by system using umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:30 AM
12-02-2002 05:30 AM
Re: umask
It's really not possible. Even Pete's solution that I thought to be the only way to do it can't work (or at least it's quite harder) because umask is also a builtin command. So even after renaming /usr/bin/umask, I can still change it.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:31 AM
12-02-2002 05:31 AM
Re: umask
perhaps you can set the umask in /etc/profile for all useres, so the user is not able to change this.
Regards,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:33 AM
12-02-2002 05:33 AM
Re: umask
first the system profile and then the user profile will get executed, so it'll override system parameters,
the user can change it anytime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 05:34 AM
12-02-2002 05:34 AM
Re: umask
Short of renaming or removing or changing the permissions on the actual umask command (or perhaps creating an alias for every user that would point to a dummy umask that actually does nothing), you really can't prevent them from using umask.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 06:03 AM
12-02-2002 06:03 AM
Re: umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 09:09 PM
12-02-2002 09:09 PM
Re: umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 09:52 PM
12-02-2002 09:52 PM
Re: umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 06:57 AM
12-09-2002 06:57 AM
Re: umask
I can think of one way to ensure that people who use umask know they shouldn't:
Alias umask to umask -S in the /etc/profile. This way, when somebody tries setting up an umask, he won't be able to.
Someone who _really_ wants to change his umask is able to, though; he just has to unalias umask...
It's not a very nice solution (root also has to unalias umask if he wants to use it), but it's the only one I can think of...
Cheers,
Fran??ois-Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 08:01 AM
12-09-2002 08:01 AM
Re: umask
You can easily get a file list with e.g.:
# find / ! -type l -perm -2 | xargs ls -ld
After some filtering it should be easy to send some mails using a conjob, etc.
Best regards...
Dietmar.