Home > Archive > alt.os.linux > June 2002 > letting non-root users mount samba shares





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author letting non-root users mount samba shares
bharat chandramouli

2002-06-24, 7:13 pm

Hi, i have my samba up and running fine and windows machines can find and
share files on my computer. but i am not able to mount shares on other
computers except as root. when i try, i get to a password prompt, and i
get the following error.

cannot mount on /mnt/volcano: Operation not permitted
smbmnt failed: 1

when i try to mount it explicitly,

mount -t smbfs //VOLCANO/SHARED /mnt/volcano/
mount: only root can do that

here's the relevant part of my fstab

//VOLCANO/SHARED /mnt/volcano smbfs umask=0,noauto,users,uid=500,g
id=100 0 0

i understand this is a permission issue. i changed the permissions on
smbmnt and smbmount to the following...

-rwsr-xr-x 1 root root 418876 Aug 13 2001 /usr/bin/smbmount
-rwsr-xr-x 1 root root 409532 Aug 13 2001 /usr/bin/smbmnt

what do i need to change to enable normal users to mount smbfs?

thanks
bc


Borax Man

2002-06-26, 7:25 am

bharat chandramouli wrote:
> Hi, i have my samba up and running fine and windows machines can find and
> share files on my computer. but i am not able to mount shares on other
> computers except as root. when i try, i get to a password prompt, and i
> get the following error.
>
> cannot mount on /mnt/volcano: Operation not permitted
> smbmnt failed: 1
>
> when i try to mount it explicitly,
>
> mount -t smbfs //VOLCANO/SHARED /mnt/volcano/
> mount: only root can do that
>
> here's the relevant part of my fstab
>
> //VOLCANO/SHARED /mnt/volcano smbfs umask=0,noauto,users,uid=500,g
id=100 0 0
>
> i understand this is a permission issue. i changed the permissions on
> smbmnt and smbmount to the following...
>
> -rwsr-xr-x 1 root root 418876 Aug 13 2001 /usr/bin/smbmount
> -rwsr-xr-x 1 root root 409532 Aug 13 2001 /usr/bin/smbmnt
>
> what do i need to change to enable normal users to mount smbfs?
>
> thanks
> bc
>
>


Set the SUID bit on the SMB binaries like so while logged in as root/
chmod u+s /usr/bin/smbmount

You man want to do that with all the samba binaries. Doing this will
make the binaries run with root permission regardless of who executed them.

Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net