Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-18-2010, 02:37 AM
|
#1
|
|
Member
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82
Rep:
|
How to modify ftp files permission?
Hi
I have a ftponly user "rom" in my box. This is used by our vendor to send files through ftp. When they send files the ownership of files are all the same as user name group created in this machine.
But our application engineers use another user name "deb" to process these file. But as the owner of these file are "rom", they cannot process with their user. Manually they modify the user name and group and then they able to process.
The group ID of the two users are different and its application dependent.
how should the ownership will be modified automatically or is there any workaround or script to modify the ownership of these file for application user's?
|
|
|
|
05-18-2010, 03:28 AM
|
#2
|
|
Member
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Rep:
|
The same way as you would have changed permission to a linux file
Code:
chmod mode remote-file-name
will do
|
|
|
|
05-18-2010, 10:43 PM
|
#3
|
|
Member
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82
Original Poster
Rep:
|
I know the chmod command. But I'm not expecting such kind of suggestions.
The user who pushes files in my server has only ftponly user. It's not able to login in any way in the server other than ftp.
What I'm saying is that, how can I set or modify the files permission automatically while arriving in my server?
|
|
|
|
05-19-2010, 06:13 AM
|
#4
|
|
Member
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Rep:
|
Quote:
|
The user who pushes files in my server has only ftponly user. It's not able to login in any way in the server other than ftp.
|
What I meant to say is that you could use that command in FTP login also.
Quote:
|
What I'm saying is that, how can I set or modify the files permission automatically while arriving in my server?
|
Ok then you can try using umask for that.
|
|
|
|
05-19-2010, 11:00 PM
|
#5
|
|
Member
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82
Original Poster
Rep:
|
Yeah, I understand. But problem is that, This user can only do ftp. and no shell is associated in this user. And the ftp user is a remote office, who's are only responsible for upload files in our server.
If there is no profile i can't set umask.
|
|
|
|
05-20-2010, 02:59 AM
|
#6
|
|
Member
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Rep:
|
OK, Now lets play with the vsftpd.conf file.
man vsftpd.conf
look for umask
umask settings for files ftp'ed are governed by the settings of this file.
Here I'm Just giving U a hint.
And I'm sure you'll be happier after discovering the answer yourself.
And don't forget to use four digit umask number.
Cheers!!!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:04 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|