![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem syncing logical volume in root vg | matt.d | UNIX for Advanced & Expert Users | 1 | 04-10-2008 01:12 PM |
| How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE | nageswarb | SUN Solaris | 0 | 03-14-2008 04:46 PM |
| LVM - Extending Logical Volume within Volume Group | ghimanshu | UNIX for Advanced & Expert Users | 3 | 07-26-2007 07:39 AM |
| files ownership/permission problem | jop | Linux | 1 | 03-30-2006 03:31 PM |
| Stubborn file ownership problem! Argh! | questor | UNIX for Dummies Questions & Answers | 0 | 09-29-2005 09:34 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Ownership problem using a CIFS-mounted volume
Hello,
I am trying to use a storage service for backing large amounts (terabytes) of data. The service uses Linux machines and allows mounting of their disks using the CIFS/SMB protocol. I do have the option of using rsync directly over the network without mounting. But in order to automate this process, I do want to have the remote disk mounted and be able to use cp or rsync transparently. The data that needs to be backed up is also on Linux systems. I had our sys admin set things up on our system so that I can use mount.cifs command to mount the remote disk like so: $ mkdir -p /tmp/sam_test3 $ mount.cifs //brick.orgname.org/test3 /tmp/sam_test3 -o user=test3, uid=sam, gid=swdevelopers, file_mode=0775, dir_mode=0775 where the remote username (on brick) is 'test3' and my local username is on our system is 'sam'. By the way, 'test3' is also a member of a group with the same name 'test3'. That group has w/x permissions on /tmp/sam_test3. The mounting command above works fine: After entering my remote user password, the disk is successfully mounted, but it changes owner and gid to 'test3'. The problem is to write to that mounted dir from my local machine on which I'm logged in as 'sam'. Since I'm not the owner of /tmp/sam_test3 and I don't belong to the group 'test3', I can't write to it. It would seem that the way to solve this would be to add my local username, 'sam' to the group 'test3' on the remote machine. But this is what the admin for the remote machine brick told me. > I think that is going to be UID based, and not name based so adding > the name will likely not help as the UID between machines is going to > be different. Is there anyone with in-depth knowledge of CIFS and the mount.cifs command who can suggest a way around the ownership permissions problems. He also suggested that smbmount doesn't have the same problem. (If that's true, why not?) Thank you in advance to whomever can give me some suggestions, Sam |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|