Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow user to mount smbfs volumes 1

Status
Not open for further replies.

Adamhemo

Technical User
Mar 4, 2003
15
US
Hi all,

Couls someone tell me how to allow my local Linux users to mount smbfs shares. I can do it as root by typing:

mount -t -smbfs -o rw,username=username,password=password //SMBSERVER/SHARE /home/user/SHARE

it works great for root, but when I try it as a user on the Linux box, it tells me that only root can mount.

I though of creating a batch job that changes the user to root, perform the command and then exit. it seems to work but asks me for the root password. is there way to send that password so that I am not prompted for it? or to get read from a file ?

Any help is appreciated. :)

Thanks
 

If you put the filesystem in fstab and add the option ' user' an ordinary user can mount it.

man mount will give you the details

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top