- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to setup SFTP directory with "Upload files" ON...
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-17-2005 12:49 AM
тАО08-17-2005 12:49 AM
How to setup SFTP directory with "Upload files" ONLY ?
I have SSH service running on HP-UX 11.11, users want to access one directory via SFTP. They can only upload files to that directory, that is, ADD files, but they can't REMOVE or UPDATE those files under that directory.
Is that possible? If yes, how?
( as I know, if I give user the permission to WRITE to that directory, "drwx------", then they can not only add files, but also change the name of the file, remove the file... )
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 01:03 AM
тАО08-17-2005 01:03 AM
Re: How to setup SFTP directory with "Upload files" ONLY ?
You can set the sticky bit on the directory which will stop people deleting files owned by other users, but if you want to stop anyone deleting any files you really want a batch job that will move them out of the upload directory on a regular basis.
A loop that performs an fuser on a file to ensure it's not open (and therefore isn't mid-copy), then mv it to another directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 01:23 AM
тАО08-17-2005 01:23 AM
Re: How to setup SFTP directory with "Upload files" ONLY ?
What's sticky bit?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 01:36 AM
тАО08-17-2005 01:36 AM
Re: How to setup SFTP directory with "Upload files" ONLY ?
chmod 1777 dir
The permissions will look like
drwxrwxrwt
The t is the sticky bit. Basically it means that, even though the directory can be changed by anyone, it forces that ONLY the owner of the directory or the file can change/delete the file.
However since you have only 1 user it will not help in this case.
You will need to use the scripted moving I suggested earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 03:23 AM
тАО08-17-2005 03:23 AM
Re: How to setup SFTP directory with "Upload files" ONLY ?
Is there any other option to let the owner of the directory to add files to that dir only, but no delete files allowed?
I don't think the batch job solution can fit my case well, but thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 03:33 AM
тАО08-17-2005 03:33 AM
Re: How to setup SFTP directory with "Upload files" ONLY ?
You may need to add a cron program that runs every few minutes and uses root to change the permissions on new files so that once uploade the users can't do anything like delete them.
That program will probably need to run once a minute but won't be that cpu intensive.
I suppose given some more time, I could design it further, let me know.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com