LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-14-2010, 12:36 PM   #1
mamunbabu2001
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
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
 
Old 05-15-2010, 05:04 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
 
Old 05-18-2010, 09:23 AM   #3
mamunbabu2001
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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

Last edited by mamunbabu2001; 05-18-2010 at 10:43 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to monitor that CIFS file systems are mounted kenneho Linux - Server 6 01-17-2010 10:36 AM
Cannot write mounted vista file system trefin56 Linux - Newbie 5 11-22-2009 09:36 AM
Why mounted fat32 partition don't have write permission anj Linux - Hardware 7 09-22-2009 01:35 AM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-31-2006 12:30 AM
mounted but no write permission varunk123456 Red Hat 1 03-31-2004 03:54 PM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration