- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting umask for an ftp-only account
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
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
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-28-2005 08:00 AM
тАО04-28-2005 08:00 AM
umask 002
exit
This is a trusted system, in which the system-wide umask is set to 027. Can someone tell me what I'm missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 08:22 AM
тАО04-28-2005 08:22 AM
SolutionIf you want to do a system wide umask for all ftp then you can do with changes in inetd.conf file.
Here is more info on this.
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070978194
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 10:18 AM
тАО04-28-2005 10:18 AM
Re: setting umask for an ftp-only account
That is an important security measure.
ftpaccess as noted is where you set umask characteristics. You can not set default characteristics to execute.
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
тАО04-28-2005 04:45 PM
тАО04-28-2005 04:45 PM
Re: setting umask for an ftp-only account
ftp stream tcp nowait root /etc/ftpd ftpd -l
add -u option
ftp stream tcp nowait root /etc/ftpd ftpd -l -u002
Reread the inetd.conf file using
#/usr/sbin/inetd -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 01:22 AM
тАО04-29-2005 01:22 AM
Re: setting umask for an ftp-only account
I have added the following line to /etc/ftpd/ftpaccess:
upload /home/sapftp / yes sapftp ftponly 0664 dirs
In /etc/inetd.conf, I tell ftp to read ftpaccess via:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a /etc/ftpd/ftpaccess
Yet, when I ftp files, they're still created using the default umask of 027. What else am I missing?
Oh yeah, as a sidenote, I am also making the change to /etc/passwd, as suggested by Steven.
One more thing: Is there a quick way to determine where the umask is being set in my current operating environment?
Thanks, in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 08:09 PM
тАО04-29-2005 08:09 PM
Re: setting umask for an ftp-only account
As per your config your system should have sapftp user in ftponly group with home directory /home/sapftp.
Also you are configuring to upload to / of the system which is not a good practice I think. Change your / to something like /home/sapftp as well. Allthough we are using -l option with ftpd in inetd.conf to set umasks, still you ftpaccess file should be in the syntax example file at /usr/newconfig/etc/ftpd/examples/ftpaccess.
There is no point in indicating umask in .profile of the ftpuser as I think .profile is executed when user logs in through login session not when he logs through ftp session.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2005 02:28 AM
тАО05-02-2005 02:28 AM
Re: setting umask for an ftp-only account
Thanks again.