LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting a Windows Share for use via FTP (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-windows-share-for-use-via-ftp-940249/)

Seb Spiers 04-17-2012 09:06 AM

Mounting a Windows Share for use via FTP
 
Hi There,

I've mounted a windows share on my network and I can read/white from the command line and also via FTP when connected as root however when I connect as another user I'm unable to write (but can read).

Obviously it's a permissions thing but I've no idea how to fix it.
Do I need to mount the drive as the ftp user?

cliffordw 04-17-2012 09:19 AM

Hi there,

Presumably you are mounting the drive onto a Linux server, using smbfs or something similar (as opposed to an NFS server on the Windows machine).

I'd suggest you eliminate anything your FTP server might be doing first. Can you write to the share if you log in to the Linux server locally or via SSH as the FTP user? What are the permissions on the file and directory in question?

Regards,

Clifford

Seb Spiers 04-17-2012 09:22 AM

If I try to mount the share as the user I get "mount: only root can do that"

Seb Spiers 04-17-2012 09:24 AM

I'm using mount and need to allow an ftp user to access some data on a windows box. My distro is CentOS.

cliffordw 04-17-2012 09:38 AM

Hi again,

Yes, only root can mount a file system. Once you have done this as root, you should be able to access it as another user, though, depending on the permissions. Can you try that, and post the permissions and error message(s) you get?

Thanx


All times are GMT -5. The time now is 06:43 PM.