- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Allowing ftp user to delete
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
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
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
02-07-2007 12:32 AM
02-07-2007 12:32 AM
Allowing ftp user to delete
I would like to let a certain user delete files using ftp. This user already has certain privileges setup with the ftp access file (their own class). Should I not just have to add a line to the ftpaccess file like
"delete yes classname" ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 12:50 AM
02-07-2007 12:50 AM
Re: Allowing ftp user to delete
So you have already given ftp access to those users ( belonging to some class) & now you want them to delete some files.. right..
then, Its also possible by changing that particular group permissions by chmod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 12:53 AM
02-07-2007 12:53 AM
Re: Allowing ftp user to delete
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 12:53 AM
02-07-2007 12:53 AM
Re: Allowing ftp user to delete
What a user can delete can be controlled with ownership of the resources involved and common group membership.
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
02-07-2007 12:56 AM
02-07-2007 12:56 AM
Re: Allowing ftp user to delete
# all the following default to "yes" for everybody
delete no guest,anonymous # delete permission?
overwrite no guest,anonymous # overwrite permission?
rename no guest,anonymous # rename permission?
chmod no anonymous # chmod permission?
umask no anonymous # umask permission?
defumask 644 website
delete yes website
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:05 AM
02-07-2007 01:05 AM
Re: Allowing ftp user to delete
No one on a Unix system (except root) can delete a file if the DIRECTORY does not allow deletions. Here are the rules:
- Only the contents of a file are controlled by it's permissions.
- The existence of a file (delete, move) are controlled by the directory.
In other words, setting a file to 777 is meaningless when you try to delete it. The directory must allow deletions and this is done by the write permissions of the directory. You can set a file to 000 permissions and anyone can delete the file if the directory is 777. Similarly, set the permissions of the file to 777 and no one can delete the file if the directory is 755 (and owned by root).
So the directory grants removal privileges.
NOTE: setting a file to 777 is always wrong. 777 means that the file is a script or program and HP-UX will try to execute the file when requested and can cause a number of error conditions. And by setting a file to 666, anyone on the system can trash the contents of the file.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:09 AM
02-07-2007 01:09 AM
Re: Allowing ftp user to delete
Can you please check ACL entries ( Access control list) as these entries define which users, groups, and/or hosts have permission to access the objects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:15 AM
02-07-2007 01:15 AM
Re: Allowing ftp user to delete
If permissions cant solve the problem, then try this ftp user command
DELETE remotefilename
Deletes the remote file specified. A directory path may be included with remotefilename.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:25 AM
02-07-2007 01:25 AM
Re: Allowing ftp user to delete
drwxrw-r-- 8 wwwftp http 2048 Feb 6 12:14 dcrs
The ftp user is wwwftp
Here is the file - an example
-rwxrwxrwx 1 wwwftp http 0 Feb 6 12:14 paul.txt
Ftp won't all the user to delete it
Not sure what Reshma what you mean by check the acl?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:33 AM
02-07-2007 01:33 AM
Re: Allowing ftp user to delete
I suggested ACL because i thought its a problem related to access permissions.
but from data given by you, It is clear that its not permission problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:42 AM
02-07-2007 01:42 AM
Re: Allowing ftp user to delete
As it is previously mentioned By Mr.Bill Hassell [ set the permissions of the file to 777 and no one can delete the file if the directory is 755 (and owned by root).]
Here data which you mentioned also saying that File is having 777 permission but Dir permission is not full.thats why users are not able to delete that file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:44 AM
02-07-2007 01:44 AM
Re: Allowing ftp user to delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:45 AM
02-07-2007 01:45 AM
Re: Allowing ftp user to delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 02:49 AM
02-07-2007 02:49 AM
Re: Allowing ftp user to delete
I overlooked the ftpaccess file again and then I added overwrite to go along with the delete. Restart ftp and it all works?