Results 1 to 7 of 7

Thread: Mounting Windows shares..using Samba

  1. #1

    Mounting Windows shares..using Samba

    Hello everyone.

    Well, I will try and make this topic short and straight to the point.

    Here is what I am attempting to do. I have a linux server that is being used as our backup machine. We have one central NT server that our users connect to, to retrieve data for the company. What I have done in the past is mount the windows shares directly to the backup server using the following command:

    smbmount //server/C/ /samba/backup -o username=administrator

    I would do this using 'root'. Once I initiated this command, I would then be asked for the administrator password for the 'server' and share 'C'. I would enter the password and the share was mounted. Simple enough.

    Well, now im in a situation where I am trying to limit how much I use the root account (I am trying to get away from using root all the time.)

    So what im trying to do now is mount the shares using the same account above, but using a normal account.

    However, when I execute the same command above and after it prompts me for the password and I type it in, it kicks out the following error:

    Password:
    smbmnt must be installed suid root for direct user mounts (500,500)
    smbmnt failed: 1

    I'm not sure what I can do to fix this. Can anyone lend a hand here?

    I'm using RH 9.0.

    I appreciate everyones help.

    Tarballed

  2. #2

    Re:Mounting Windows shares..using Samba

    chmod +s smbmnt

    Don't forget smbumount too

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re:Mounting Windows shares..using Samba

    Or add it to /etc/fstab with the noauto and user options.


  4. #4
    Mentor coltrane's Avatar
    Join Date
    May 2001
    Location
    North Carolina
    Posts
    1,390

    Re:Mounting Windows shares..using Samba

    Im thinking ph34r would be more secure.....

  5. #5
    Mentor
    Join Date
    Jul 2001
    Posts
    1,666

    Re:Mounting Windows shares..using Samba

    Adding it to fstab still doesn't work, tried that myself once before
    CP

  6. #6
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:Mounting Windows shares..using Samba

    Really? I have it in fstab and it works fine for me.

    //DELL/C /mnt/samba/c smbfs auto,uid=500,gid=500,password=xxxxxxx,rw 0 0

  7. #7
    Mentor
    Join Date
    Jul 2001
    Posts
    1,666

    Re:Mounting Windows shares..using Samba

    Doesn't work at all for me. If I don't have user in the list of options it gives me this
    mount: only root can mount //server/storage1 on /mnt/hd
    and if I have user in the options, I get this
    smbmnt must be installed suid root for direct user mounts (1000,1000)
    smbmnt failed: 1
    So I'm all out of ideas. If i try and use chmod +s, it gives me another error
    libsmb based programs must *NOT* be setuid root.
    920: Connection to server failed
    SMB connection failed
    Anyone have any idea how I can easily mount and unmount windows shares without have to be root?
    Cheers
    CP

Similar Threads

  1. Mounting smb Shares
    By Wildheart in forum General Chat
    Replies: 2
    Last Post: 12-15-2005, 08:41 PM
  2. Samba shares on subnet
    By Tyr_7BE in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 08-25-2005, 09:57 PM
  3. User mounting iso file, smb shares
    By CP in forum Linux - General Topics
    Replies: 5
    Last Post: 06-01-2003, 07:22 PM
  4. Mounting smb without samba?
    By airhead in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-10-2002, 09:46 PM
  5. Samba Shares - Linux to Linux
    By drizzle in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 01-26-2002, 07:39 PM

Bookmarks

Posting Permissions

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