FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    hoser_9 Guest

    Question Mouting SMBFS/CIFS FC5

    Hi,
    I have a general question about mounting, maybe someone has seen this problem before or my mount command is screwey. I know that smbfs has been replaced with cifs, and I tried this command

    sudo mount -t cifs -o user=name,setuids,noperm,uid=500,gid=500 //server/stb/name /home/name/share

    Now my question is when I execute the command for some reason it mounts //server/home/name on /home/name/share ??? I don't understand it. When I bring up nautilus and make is show me the path I enter "smb://server/stb/name" and it takes me to the right place?? it does not redirect me to "//server/home/name". Do I have my mount command weird?

    Thanks

  2. #2
    hoser_9 Guest
    Another Thing to add.. Is it maybe that the share on the file server does not support mounting that "public" share and redirects you to the users home dir? Or maybe the server doesn't work exactly how cifs expects it to work?

    how compe nautilus goes to the location correctly? When I tell it to go here "smb://server/stb/name" ?

    Is there a way to do smbfs, because maybe smbfs will mount it correctly?

  3. #3
    hoser_9 Guest
    Ok let me make this simpler.. Can ANYONE HELP..

    I can do this command. when Root

    mount -t cifs -o user=name //server/share /mnt/views

    Now that command WORKS. but then the /mnt/views is not writeable by my linux user. I have to be root to be able to write. How can I do sudo? If I add the line with noperm, uid so on and so on it doesn't mount the dir ???>?>? Or do I run that command while as a regular linux user not as root. I mean run the sudo mount -t cifs -o user=name,setuids,noperm,uid=500,gid=500 //server/stb/name /home/name/share command as like my linux user ?

  4. #4
    bluerags Guest
    I have explanations, but no solutions. (looking for a solution myself)
    When you mount the network drive with cifs, your machine takes on the group and userID that the remote machine uses. therefore, when you log in, the owner and group of the mount point change to weird numbers. these are the numbers of the group and owner of the stuff on the other machine. and the uid and gid args that you pass as parameters are ignored because your samba server (i assume you use samba) supports unix cifs extensions.
    for more details, please view the manpage of mount.cifs.

    the problem is that we would like to map to another user on the server, but keep our local rights from the client...

    any clues?

  5. #5
    bluerags Guest

    thinking error.

    ok. here i go. i think that there is a "thinking error" with this whole thing how cifs mounts the remote drives.

    there are three users in play :
    the server-side regular user, we'll call him "remotejohn"
    the client-side regular user, "localjohn"
    as well the client-side root.

    the whole idea of the samba server is to map a linux user to a smb share. ok, cool. so the idea would be that if i have the credentials of remotejohn, i sould be able to connect to his account and gain all his rights on the server. no more than his rights, and no less.
    BUT that's not the way it goes with cifs. since on the local machine i'm connected with the account "localjohn" and that the cifs mounts pass on the unix owner "remotejohn" the local machine thinks "hey, localjohn wants to access to files from remotejohn. that's not ok" and locks localjohn out.
    IF i connect with root, to remotejohn, then i have exactly the rights of remotejohn. because the local machine thinks "he's root, can access everything". if i try to access a file that's not owned by remotejohn on the server, the server blocks me off, which is cool since that's the whole point of access rights.
    SO : there's a flaw or missunderstanding in that mapping : when i connect with credentials of another user to another machine, i expect the local machine not to block me because my local machine has different credentials.

    so, this is my frustration... did i missunderstand something?

    btw : i know it would be easier using nfs, but i don't have a choice, since i also have windows clients that access the same files on the server.

  6. #6
    bluerags Guest

    Solution

    well... to all the nice theory i just made above, there's a simple solution : the option noperm.
    user the option noperm in the mount line and yipee, the rights of your client machine won't be enforced on that subtree. only the rights configured on the server.

    so your line in /etc/fstab should look something like
    //sambaserver/share /mnt/mountpoint cifs noperm

    hope this helps.

    rags

  7. #7
    hoser_9 Guest
    Yes I see what you are saying bluerags. I tried the noperm line and IT worked.. Thanks..

    I had noperm up on my command line originally but that didn't work maybe because it was in combo with setuids

Similar Threads

  1. cifs instead of smbfs
    By daviddoria in forum Servers & Networking
    Replies: 14
    Last Post: 9th July 2008, 01:47 PM
  2. cifs or smbfs?
    By harisund in forum Servers & Networking
    Replies: 4
    Last Post: 31st July 2006, 07:37 AM
  3. CIFS and SMBFS
    By digaddictions in forum Servers & Networking
    Replies: 0
    Last Post: 16th March 2005, 07:28 AM
  4. Samba: smbfs vs cifs
    By bert in forum Servers & Networking
    Replies: 5
    Last Post: 6th December 2004, 08:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •