LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Allow FTP user rw access to entire server - CentOS6 (https://www.linuxquestions.org/questions/linux-server-73/allow-ftp-user-rw-access-to-entire-server-centos6-4175461315/)

noncentz 05-09-2013 12:53 PM

Allow FTP user rw access to entire server - CentOS6
 
Good Day Everyone,

I am new to linux but I am really enjoying learning about the OS. I am testing a glusterfs storage solution and I cannot seem to get FTP to write to an NFS mount I setup. I set the mount point to a directory in the home folder of a test user I setup named 'gluster'. After setting up this user I am able to login to my server and I can navigate to the mount as well as create/edit/delete files OK.

-- mount -a @@ mount output --

glnode01.devnet.local:/gv0 on /home/gluster/GlusterTest type nfs (rw,vers=3,addr=192.168.1.210)

I would like to have access to this mount using FTP so I installed vsftpd on the server. Here are the relevant configurations for vsftpd.

-- /etc/vsftpd/vsftpd.conf

After setting up the user I was able to connect to the FTP server using Filezilla which brought me to the users home directory. I am able to navigate all files on the server but I am not able to create files in any place other than the /home/ directory.

I assumed since the NFS mount was located in the home directory I would be able to write files but this is not the case, yet when I login to the server I can write file perfectly. Because I cannot write files I assume this is a permissions error and I would really like access to all files in the system. I tried adding the user to sudoers but that has no effect.

The server I am connecting to is running centos6. The client I am using is ubuntu. I am not sure how to continue as I am unfamiliar with the OS as a whole.

Any help would be greatly appreciate. --> noncentz

jpollard 05-10-2013 03:50 PM

It depends on the user.

A logged in user can only create/write files and directories in a directory that user owns.

It sounds like the user id on the system logged into with FTP does not use the same UIDs that the NFS server is using, thus the ownership test fails.


All times are GMT -5. The time now is 02:12 AM.