LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recursive write permission on cifs mounted file system (https://www.linuxquestions.org/questions/linux-newbie-8/recursive-write-permission-on-cifs-mounted-file-system-807851/)

mamunbabu2001 05-14-2010 11:36 AM

recursive write permission on cifs mounted file system
 
Hi guys,
Back again for help like always....

I have mounted a iomega file system on a cetos os machine using

mount.cifs //filserver-ip/directory /home/my-home/mounted-file -o
user=username

(** mounted as root) The mounting works fine.

The problem arises when I try to create a sub-directory inside the mounted directory. All the newly created sub directories become write protected.

I am accessing this file system from R software and it needs to write/create directories in side this mounted directory.

any idea how can newly created sub-directories will become automatically
writable, so that R can create new sub-directories and write data inside those directories.

Any help is appreciable.

regards,
Mamun

jschiwal 05-15-2010 04:04 AM

It may be an iomega filesystem on the host server, but you are using the cifs filesystem on the client. You may need to add more options such as 'uid=<username>,gid=<groupname>'. The file_mode and dir_mode options may be needed as well. It depends on whether the server supports the cifs extensions. If it does, even ACLs are enabled. If not, you need to explicitly indicate the owner, group and permissions of the filesystem in the mount command.

Could you provide more information on how the disc itself is mounted on the server? What OS does it use. If it is Linux, what does "mount" return about the filesystem and the mount options. I'm not familiar with `iomega' filesystem.

mamunbabu2001 05-18-2010 08:23 AM

hi jschiwal,

Thanks for your answer. Using uid option in the command does help.
So what I have used is as follows

1. mount.cifs //ip/bio /home/my_user_name/bio -o user=myuserID_for_file_system,uid=my_linux_user_ID,rw

The above command mounts the file system in my local directory. It resolves the problem to some extent.
But in this manner I have mount it separately for each user. I have created a group and added three users in the group.

then executed the command :

2. mount.cifs //ip/bio /home/mamun/bio -o user=myuserID_for_file_system, gid = linux_group_ID, rw


In second case I have tried to mount the data in the same location but instead of using uid I have used gid and it does not give
me write permission to sub-directories.

Any idea what can go wrong here using gid ???

Thanks in advance again..

regards,
Mamun


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