Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-08-2004, 08:23 AM
|
#1
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
Mounting samba drive as user...
Hi,
I'm on Slackware 9.1 and was trying smb4k when I noticed that you can't mount a network drive as a regular user...
So does anyone know how to make changes (some permissions I suspect) so it becomes possible to run smbmount as user?
Greetz 'n tnx,
elluva
|
|
|
01-08-2004, 08:48 AM
|
#2
|
Member
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696
Rep:
|
you need setuid to mount and smbmount
but smbmount usually works fine with users, but you need to specify correct creditentials like
mount -t smbfs //winpc/myshare /mnt/somedir -o username=YourName, password=YourPass
|
|
|
01-08-2004, 11:45 AM
|
#3
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Original Poster
Rep:
|
nope I get:
smbmnt must be installed suid root for direct user mounts (501,501)
smbmnt failed: 1
any idea
|
|
|
01-08-2004, 12:25 PM
|
#4
|
LQ Newbie
Registered: Dec 2003
Distribution: Gentoo
Posts: 25
Rep:
|
If you want smbmount to work for a normal user, install it suid root. In general, you need root privileges to mount/unmount filesystems, for obvious reasons, so the simple solution is to make smbmount run with root privileges. Type the following as root:
# chmod a+s `which smbmount`
|
|
|
01-09-2004, 01:11 AM
|
#5
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Original Poster
Rep:
|
$> smbmount //HOST/SHARE /mnt/share/ -o username=xxxxxx
libsmb based programs must *NOT* be setuid root.
1093: Connection to HOST failed
SMB connection failed
same command as root does work...
|
|
|
01-10-2004, 02:29 AM
|
#6
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Original Poster
Rep:
|
I found the problem, for some reason, it is not smbmount that must be setuid, it is smbmnt. I had to see it right away in the error message, but didn't...
still thanks for all help!
|
|
|
05-24-2004, 10:51 PM
|
#7
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
ellava, could you post what you did to make this work so others can benefit from your experience. I did chmod a+s `which smbmnt` and still get the error saying libsmb based apps should NEVER be suid root.
|
|
|
05-25-2004, 08:55 AM
|
#8
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Original Poster
Rep:
|
Post how I solved it??? Well it is there isn't it. Euhm... well doing chmod a+s `which smbmnt` solved it for me. The thing I was doing wrong was that I didn't do chmod a+s `which smbmnt` but did chmod a+s `which smbmount`.
hope it helps although I posted this before on this thread
|
|
|
05-25-2004, 08:35 PM
|
#9
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
Sorry, I thought you had done more while off-line to solve the problem. I was having a similar issue until I added a line in fstab for the share I was after.
|
|
|
All times are GMT -5. The time now is 11:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|