LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-18-2010, 02:37 AM   #1
jeesun
Member
 
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82

Rep: Reputation: 15
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?
 
Old 05-18-2010, 03:28 AM   #2
__raHulk
Member
 
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Blog Entries: 1

Rep: Reputation: 16
The same way as you would have changed permission to a linux file

Code:
chmod mode remote-file-name
will do
 
Old 05-18-2010, 10:43 PM   #3
jeesun
Member
 
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82

Original Poster
Rep: Reputation: 15
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?
 
Old 05-19-2010, 06:13 AM   #4
__raHulk
Member
 
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Blog Entries: 1

Rep: Reputation: 16
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.
 
Old 05-19-2010, 11:00 PM   #5
jeesun
Member
 
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82

Original Poster
Rep: Reputation: 15
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.
 
Old 05-20-2010, 02:59 AM   #6
__raHulk
Member
 
Registered: Apr 2010
Location: Mumbai
Distribution: RHEL, Debian, Fedora, Ubuntu
Posts: 39
Blog Entries: 1

Rep: Reputation: 16
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!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba MODIFY permission needs 'x' permission set in Linux? jlinkels Linux - Software 6 11-13-2009 09:30 AM
FTP, newly created files permission georgiozoze Linux - Newbie 2 09-16-2006 08:47 PM
Changing File Permission in a FTP directory to prevent deleting of files shawnbishop Linux - Software 3 01-10-2006 05:41 AM
permission denied for root in FC4: why can't I modify own files? ixis Linux - General 4 12-10-2005 06:05 PM
For Squid (proxy server) gurus: FTP from browser with read-write-modify permission Zingaro2002 Linux - Software 5 11-24-2003 04:56 AM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration