- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to set umask
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
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
тАО08-24-2006 12:42 AM
тАО08-24-2006 12:42 AM
how to set umask
I had created a user with /bin/false shell.Now I want to set umask for that user.How can i set??????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 12:45 AM
тАО08-24-2006 12:45 AM
Re: how to set umask
The user has a file called .profile
umask 022
Or whatever setting you want in that file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 12:49 AM
тАО08-24-2006 12:49 AM
Re: how to set umask
if i set umask in .profile is it applicable for ftp means in ftp .profile is executed ???????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 12:56 AM
тАО08-24-2006 12:56 AM
Re: how to set umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 12:57 AM
тАО08-24-2006 12:57 AM
Re: how to set umask
you could set the umask system wide in inetd.conf with -u .
for settting up user:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1043408
Why do you use all the exclamation marks on your questions ? Are they not being answered quick enough ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 12:58 AM
тАО08-24-2006 12:58 AM
Re: how to set umask
SInce you are not allowing a login session and since you have not substituted a program in lieu of a standard shell, you will need to call 'umask(2)' in your C-code program; or use 'sysopen' with a permissions argument in Perl.
Otherwise, if the account is only for FTP, consider setting a default 'umask' for the 'ftp' daemon in 'etc/inetd.conf' (see the manpages for 'ftpd(1M)'). You might wish to allow or deny the use of 'umask' in the 'ftpaccess(4)' file too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 01:04 AM
тАО08-24-2006 01:04 AM
Re: how to set umask
You can set the umask in the users .profile.
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 09:46 PM
тАО06-25-2007 09:46 PM
Re: how to set umask
u can set umask in user's .profile file
add an entry at bottom umask 022
dipesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 09:58 PM
тАО06-25-2007 09:58 PM
Re: how to set umask
I'm not sure how your reply is better than the incorrect reply from sp. Note that the shell is /usr/bin/false and this is for ftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 01:29 AM
тАО06-26-2007 01:29 AM
Re: how to set umask
Since you didn't speecify, if this is a HPUX or Linux.
In Linux, you have a config file, there you can control umask values.