You are not logged in.

#1 2008-04-17 18:13:41

gormine
Member
Registered: 2007-11-26
Posts: 55

[Solved] FTP access to share mounted over network no write permission

I am having trouble figuring out how to set permissions for each user on a mounted share. Here is the scenario...

I have a storage server with a share called "ftp".
"ftp" is mounted on my arch server that uses vsftpd.
The only way I can give users write premissions is to chown to that user (groups do not make a difference) but this is obviously not good enough if I need to give more than one user access.
I need to be able to give groups write permission but it will not allow me to.
When I use "umask=0000" in the fstab line, I end up with drwxr-xr-x

Last edited by gormine (2008-04-18 17:48:52)

Offline

#2 2008-04-18 11:17:14

Captain Spaulding
Member
Registered: 2006-11-16
Posts: 115
Website

Re: [Solved] FTP access to share mounted over network no write permission

I'm in no way a FTP expert, so this might not work. umask sets the permissions at file creation, not the current permissions. Did you ever try to chmod them in the traditional way, chgrp the dir to ftp-users and gpasswd the users to ftp-users?

Offline

#3 2008-04-18 14:01:36

gormine
Member
Registered: 2007-11-26
Posts: 55

Re: [Solved] FTP access to share mounted over network no write permission

I never heard of those commands till now but I added the user to the group with usermod and changed the group of the folder with chown. There are too many ways to change users/groups around.

Offline

#4 2008-04-18 15:20:38

gormine
Member
Registered: 2007-11-26
Posts: 55

Re: [Solved] FTP access to share mounted over network no write permission

Everything is ok until I mount the share. Thats when the permissions change. It takes away write access to group and others. Thats why I referred to umask in fstab. Even with a umask of 0000, it still changes.

Last edited by gormine (2008-04-18 15:21:43)

Offline

#5 2008-04-18 15:48:06

gormine
Member
Registered: 2007-11-26
Posts: 55

Re: [Solved] FTP access to share mounted over network no write permission

Here is the line is fstab

//192.168.128.20/ftp /ftp smbfs ,umask=002,gid=ftp 0 0

Offline

#6 2008-04-18 17:40:48

gormine
Member
Registered: 2007-11-26
Posts: 55

Re: [Solved] FTP access to share mounted over network no write permission

Ok, I figured it out. I never knew there was a dmask and fmask.


Correct me if this is wrong.

umask = files and folders that are created.
dmask = existing folders
fmask = existing files

Offline

Board footer

Powered by FluxBB