- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftpshell and 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
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-27-2007 06:40 AM
тАО08-27-2007 06:40 AM
ftpshell and umask
Folks,
FTP Client Server: SOlaris 8
FTP Server: 11.11/S16K-A
One of my users needs ftp access to a production system (he is stuck with ftp since all his scripts are ftp scripts and cannot switch to sftp), I set him up with /usr/bin/ftpshell as his shell, all I've in ftpshell is 'exit 1', the ownership/permissions to the ftpshell are bin:bin/555.
It works.
His scripts run from a solaris 8 machine (FTP client).
The default umask system-wide is 022 (755), but when he puts files it inherits 640, I want it to be 644 (by default, when he puts files into this directory), should I be messing with ftpaccess file? I want this specific for this user only - all his files should be 644 since there are other groups that needs access (Read only) and I can't put them in the 'group'
I need a quick fix - no time for chroot/sftp or anything of that sort, we will slowly switch him to sftp - hopefully soon, but for now, need a temporary fix to the current setup.
Please advise.
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 06:47 AM
тАО08-27-2007 06:47 AM
Re: ftpshell and umask
Just put the chmod command in the script this is being run and set it however it needs to be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 06:48 AM
тАО08-27-2007 06:48 AM
Re: ftpshell and umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 06:49 AM
тАО08-27-2007 06:49 AM
Re: ftpshell and umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 06:51 AM
тАО08-27-2007 06:51 AM
Re: ftpshell and umask
BTW, normally its a very minor change to take an ftp script to sftp. If you give me a sample, I'll show you what I mean. Also, you can go password free with sftp making the authentication work without hardcoding it into scripts.
To your question:
ftpaccess
That file can be used to configure a default umask. So long as you don't want execute, which will not be permitted.
How is that for simple?
http://www.wu-ftpd.org/man/ftpaccess.html
http://forums.macosxhints.com/archive/index.php/t-13827.html
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-27-2007 07:32 AM
тАО08-27-2007 07:32 AM
Re: ftpshell and umask
Thanks Steve.
I messed with ftpaccess and used the upload directive and was able to get that working.
I understand converting to sftp would be easier with the auth keys in place and all that, but it is out of my control, my user has over a dozen scripts that he needs to modifiy, eventually we will have him take the sftp/ssh route.
Thanks for your assistance.
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2007 07:33 AM
тАО08-27-2007 07:33 AM