- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting FTP umask per user
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
тАО10-04-2001 11:31 PM
тАО10-04-2001 11:31 PM
Setting FTP umask per user
the default ftpd permission is 027. Can I set the umask
per user/group basis. If I do ftp from MS-Dos to Unix
the file takes permissions of 640. i want this file to be readable by all. But this has to only for that particular area.
thanks
Prosanjit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2001 11:37 PM
тАО10-04-2001 11:37 PM
Re: Setting FTP umask per user
1. put -u
2. inetd -c
3. new ftp session will work with new umask
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2001 11:39 PM
тАО10-04-2001 11:39 PM
Re: Setting FTP umask per user
You can only set the ftp umask globally in /etc/inetd.conf, not for a particular user or area. The only way to do what you want is have a cron job which runs frequently which detects new ftp files to certain areas/users and then changes their permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 01:00 AM
тАО10-05-2001 01:00 AM
Re: Setting FTP umask per user
First you have to enable the ftpaccess file by specifying the -a option for the ftp entry in the /etc/inetd.conf file and then restart inetd (inetd -c).
Then set up your ftpaccess file with the upload directive as shown:
upload root-dir dirglob yes|no owner group mode dirs|nodirs
Define a directory with dirglob that permits or denies uploads.
If it does permit uploads, all files will be owned by owner and group and will have the permissions set according to mode.
Directories are matched on a best-match basis.
For example:
upload /var/ftp * no
upload /var/ftp /incoming yes ftp daemon 0666
upload /var/ftp /incoming/gifs yes jlc guest 0600 nodirs
This would only allow uploads into /incoming and /incoming/gifs. Files that were uploaded to /incoming would be owned by ftp/daemon and would have permissions of 0666. File uploaded to /incoming/gifs would be owned by jlc/guest and have permissions of 0600. Note that the root-dir here must match the home directory specified in the password database for the ftp user.
The optional dirs and nodirs keywords can be specified to allow or disallow the creation of new subdirectories using the mkdir command.
The upload keyword only applies to users who have a home directory (the argument to the chroot()) of root-dir.
See the ftpd(1M) and ftpaccess(4) man pages for more details.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:49 AM
тАО10-05-2001 05:49 AM
Re: Setting FTP umask per user
$ ftp
ftp> open foo
ftp> user username password
ftp> put bar.txt
ftp> site chmod 0764 bar.txt
or:
ftp> user username password
ftp> site umask 022
ftp> put bar.txt
dave