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
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО04-10-2009 12:41 PM
тАО04-10-2009 12:41 PM
umask
Does anyone know where these magic numbers of 666 for files and 777 for directories come from or where they are kept?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 12:50 PM
тАО04-10-2009 12:50 PM
Re: umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 12:56 PM
тАО04-10-2009 12:56 PM
Re: umask
Is this really a worldwide standard?
If that's correct there can be exceptions to this rule then...right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 01:12 PM
тАО04-10-2009 01:12 PM
Re: umask
It's rather the creation mode is octal 666 for files and 777 for directories that is supplied to 'creat()' and that the umask is then and'ed to obtain the permissions you see. Thus, a 'umask' of zero (0000) when applied during file creation leaves the permissions as 0666 for a file and 0777 for a directory. These are the values that the shell uses as a standard.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 01:21 PM
тАО04-10-2009 01:21 PM
Re: umask
I am putting some files into a directory on a server and even though the default umask is 022 the files that are being dumped have 0600 permissions instead of the expected 0644. This is really confusing the heck out of me.
So please help as best as you can.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 01:41 PM
тАО04-10-2009 01:41 PM
Re: umask
You can set a 'defumask' umask in '/etc/ftpd/ftpaccess'. The later configuration file is used when the FTP daemon (as spawned by 'inetd') is invoked with the '-a' switch. See:
http://www.docs.hp.com/en/B2355-60130/ftpaccess.4.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 02:01 PM
тАО04-10-2009 02:01 PM
Re: umask
Is there a way I can specify that particular user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 02:04 PM
тАО04-10-2009 02:04 PM
Re: umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 02:25 PM
тАО04-10-2009 02:25 PM
Re: umask
> Besides that defumask is found only on 11iv3 while the sytem I am on is 11iv1
Well, it always helps to state the release on which you are running at the onset :-)
That said, on 11.23 or 11.31 you could do
class myclass real someuser
defumask 022 myclass
...which would allow you a user-specific 'umask' as desired.
I don't know if this works or not on 11.11. It's not documented in those manpages. If it isn't, I think this leaves you to use 'inetd's default FTP umask '-u nnn' and to after-the-fact change the permissions of the files of the user in question.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 10:21 PM
тАО04-10-2009 10:21 PM
Re: umask
Yes. But some application may want to be more secure. Though from fopen(3), you don't get a choice.
>If that's correct there can be exceptions to this rule then... right?
Sure. But from your following questions it seems it is umask that is changed, not the default mode parms.