LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network share only for root? (https://www.linuxquestions.org/questions/linux-newbie-8/network-share-only-for-root-869517/)

darkduck 03-18-2011 07:31 PM

Network share only for root?
 
I have network share which is listed in fstab as
Code:

//fnd/public /fnd cifs noserverino,guest,nolinux,iocharset=utf8,rw        0        0
File fstab is owned by root, as it should be (I believe).
Folder /fnd, when not mounted, is owned by user darkduck.
But once mounted this folder is owned by root.
Hence, I cannot edit, delete, move files within this folder, unless I do something like gksudo nautilus or sudo mc.
I tried to mount adding uid=1000,gid=1000 parameters. This allows me to create files, but not edit or delete them afterwards.

Folder itself is on the external network drive with hardware built-in samba. There is no user/password configuration for access on drive side.

Actually I was able to work normally with this folder until recent. But then situation changed, I don't know why and when.

Same situation for Ubuntu 10.10 and Debian 6.0.

I searched for solution, but only found unresolved topics.

Peacedog 03-19-2011 11:36 AM

Hi darkduck, Welcome to LQ. Have you tried adding a umask option or dmask & fmask options to your fstab?

Good luck. ;-)

darkduck 03-19-2011 06:02 PM

umask option is not available for cifs.
dmode and fmode are deprecated.
Anyway, thanks for the direction.
Sorted issue in Debian with
Code:

//fnd/public /fnd cifs noserverino,nolinux,guest,iocharset=utf8,rw,file_mode=0777,dir_mode=0777        0        0
Will try in (K)Ubuntu. If does not work, will come back.

Peacedog 03-19-2011 06:33 PM

Glad you got it sorted.

Good luck. ;-)


All times are GMT -5. The time now is 02:57 PM.