0

When creating a user, a directory is created with user name, I want to create a super user, who has access to other users directory, and this using FTP, so when the super user is connected, he has access to all other users directories.

Is there a way to share the user directory with other users ?

Yassine
  • 51
  • 1
  • 8
  • I think I read somewhere that giving FTP full root access would be a very bad idea. Why not give a user root access when they log in (through `ssh`, etc)? – Xen2050 Feb 23 '15 at 10:51
  • The problem is that I have end users with no ubuntu or ssh skills, in fact, I have a dedicated server, and multiple user with different access rights, and I want to give each of them ftp access, but i'm struggling with the ftp root access (having access to all other users ftp directories). – Yassine Feb 23 '15 at 10:57
  • i want to give them access to their files, through the navigator integrated ftp manager, or fillezilla. i hopr i made myself clear. – Yassine Feb 23 '15 at 10:58

1 Answers1

0

Create a user and then edit /etc/passwd file and grant root permissions to the user which you created by changing User and Group IDs to UID 0 and GID 0.

For eg.- You created xyz user, it will look like-

# grep xyz /etc/passwd
xyz:x:1001:1001::/home/xyz:/bin/sh

Using your favorite text editor, change it to-

xyz:x:0:0::/home/xyz:/bin/sh

Now since xyz is root, it can have access to all the files.

Hope it helps!

S R
  • 657
  • 3
  • 10
  • 21
  • Thanks for your answer, I mounted a "user2" home folder into a folder created on a "user1" home folder, and now when connecting via ftp, the "user1" can acess "user2" home folder. so i didn't need to create a new user with acess roots. how does it seems to you ? – Yassine Feb 23 '15 at 11:28
  • Work-around is okay, I guess. – S R Feb 23 '15 at 11:35