- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP - How to prevent a user from deleting files
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
тАО03-29-2004 01:05 AM
тАО03-29-2004 01:05 AM
FTP - How to prevent a user from deleting files
I need to prevent a ftp user on a HP-UX server to delete files. The user should have the capability to get and put files into the directory but should not be able to delete any files. Is this possible to do ?
If it is, how must it be done ?
Thanks in advance.
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 01:10 AM
тАО03-29-2004 01:10 AM
Re: FTP - How to prevent a user from deleting files
chmod o-w my_directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 01:17 AM
тАО03-29-2004 01:17 AM
Re: FTP - How to prevent a user from deleting files
Will this still allow the user to put files into the directory if it only has read permissions ?
Thanks
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 02:19 AM
тАО03-29-2004 02:19 AM
Re: FTP - How to prevent a user from deleting files
configure the following file:
/etc/ftpd/ftpaccess
delete no guest,anonymous # delete permission?
overwrite no guest,anonymous # overwrite permission?
rename no guest,anonymous # rename permission?
In this way guest and anonymous users cannot delete, overwrite and rename files.
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2004 02:32 AM
тАО03-29-2004 02:32 AM
Re: FTP - How to prevent a user from deleting files
chmod a-w *
or by changing ownership to other users and
chmod o-w *
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
тАО03-29-2004 03:08 AM
тАО03-29-2004 03:08 AM
Re: FTP - How to prevent a user from deleting files
I think the ftpaccess file is the way to go as restricting permissions on the files cannot really be controlled as the files are shared between many users and new ones created all the time.
Ettore, the ftpaccess file does not exist. Do I simply just create it with the entries or are there other steps to do before this ?
Thanks
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2004 06:21 PM
тАО03-30-2004 06:21 PM
Re: FTP - How to prevent a user from deleting files
if file doesn't exist then just create it:
# vi /etc/ftpd/ftpaccess
delete no guest,anonymous # delete permission?
overwrite no guest,anonymous # overwrite permission?
rename no guest,anonymous # rename permission?
I remember you that user must be guest or anonymous in this instance.
# chmod 444 /etc/ftpd/ftpaccess
# chown bin:bin /etc/ftpd/ftpaccess
Hope this helps you.
Ettore
P.S.: I noticed that you are using two users in this post....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2004 06:26 PM
тАО03-30-2004 06:26 PM
Re: FTP - How to prevent a user from deleting files
it seems that you have switched your account. Try to login with the account that you used to create the question with, so you be better seen as the author.
greetings,
Michael
zero points please