How to add a new users in proftpd server? | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

How to add a new users in proftpd server?

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-12-2013
Paulwintech Paulwintech is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 20 March 2013, 1:44 AM EDT
Posts: 41
Thanks: 9
Thanked 0 Times in 0 Posts
How to add a new users in proftpd server?

Hi,

I have installed proftpd server in my amazon instance and how to enable a new user to access the proftpd.

1. How to add or delete a users

2. how to enable a particular user to access particular folder

Regards
Paulwintech
Sponsored Links
    #2  
Old 03-12-2013
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 November 2014, 4:08 PM EST
Location: Saskatchewan
Posts: 19,944
Thanks: 848
Thanked 3,422 Times in 3,207 Posts
I don't think there's a special kind of 'proftpd user', UNIX usernames and proftpd usernames match up... The usual file access permissions apply.
Sponsored Links
    #3  
Old 03-20-2013
Paulwintech Paulwintech is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 20 March 2013, 1:44 AM EDT
Posts: 41
Thanks: 9
Thanked 0 Times in 0 Posts
Hi,

No im able to share only the user home directory. For example i need to share a particular folder for user1 & user2 and restrict user3

please let me know how can i do it?

Regards
Paulwintech

---------- Post updated 03-20-13 at 11:13 AM ---------- Previous update was 03-19-13 at 01:47 PM ----------

Hi,

Please some body help me on this
    #4  
Old 03-20-2013
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 November 2014, 4:08 PM EST
Location: Saskatchewan
Posts: 19,944
Thanks: 848
Thanked 3,422 Times in 3,207 Posts
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
Sponsored Links
    #5  
Old 03-20-2013
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 November 2014, 4:08 PM EST
Location: Saskatchewan
Posts: 19,944
Thanks: 848
Thanked 3,422 Times in 3,207 Posts
You can restrict their access to files in UNIX by using UNIX file access restrictions.

Create a 'shared' group and put user1 and user2 in it, but not user3. Then change the ownership of the directory, and restrict file access from other users, but allow the group.


Code:
groupadd shared # Create a new user group named 'shared'
usermod -a -G shared user1 # Add user1 to the group
usermod -a -G shared user2 # Add user2 to the group

chown :shared /path/to/directory # Make the group-owner of the folder 'shared'
chmod 770 /path/to/directory # The dir's owner, and the group, can write, but not anyone else.

That way, people in the 'shared' group can write to it, or the folder's own owner, but not anyone else.

As for how to get to the files with FTP, the obvious way would be to change their home directories, but if they use shell logins too, that's not so good... You can check if they belong to the 'shared' group and force them into that folder like this:


Code:
<IfGroup shared>
DefaultRoot /path/to/directory
</IfGroup>

Sponsored Links
    #6  
Old 03-21-2013
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 7 November 2014, 1:54 AM EST
Location: Mexico
Posts: 725
Thanks: 11
Thanked 106 Times in 102 Posts
If your filesystem supports it, you can also use ACLs to granulate user access to specific files/folders.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
users can't sftp into my server emildiego Linux 6 06-15-2011 12:26 AM
when users ftp to server the timezone reflected is UTC but the server is set to TZ in localtime shtobias Red Hat 2 09-20-2010 11:28 AM
2 users on the same server (rexec) Anta UNIX for Advanced & Expert Users 10 10-25-2005 08:25 AM
Users locked out of Server marty 600 UNIX for Dummies Questions & Answers 12 04-12-2005 10:49 PM
Add users on OSX server with SSH nicke30 UNIX for Advanced & Expert Users 3 02-14-2002 10:22 AM



All times are GMT -4. The time now is 05:37 PM.