LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2002, 02:31 AM   #1
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
Samba mount


Ok if someone has any idea what to do about this:

I try to mount smb share as user and i get an error messg:
smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1

than i chmod 4775 smbmount

and get this msg:

libsmb based programs must *NOT* be setuid root.
1893: Connection to server failed
SMB connection failed


any idea ???

Regards, PcHammer
 
Old 11-07-2002, 12:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well, reading the error message it says "libsmb based programs must *NOT* be setuid root." so that means that the program you're running is set suid root.

chmod -s /path/to/smbmount

should do it.
 
Old 11-08-2002, 01:12 AM   #3
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
That's ok I found what the user must do.

I smbmount there is a safety switch, it checks if smbmount is suidroot and it prevents from working, so smbmount must NOT be suid root. OK know how would a user map a samba share on linux Workstation ??

There is a way smbmount must not be suid root and smbmnt file must BE chmod 4775.

Ok than u need to chmod 4775 also smbumount (so that user can umount share)

I hope this solves someones problem.


Regards, PcHammer
 
Old 11-08-2002, 03:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unpriveledged users can not normally mount un defuned file systems, it is a potentially very dangerous thing. you would normally have an entrry for all allowable mounts (partitions, cd-rom, nfs, samba) in your /etc/fstab file and then users can mount them just fine.
 
Old 11-08-2002, 07:17 AM   #5
KayJay
Member
 
Registered: Mar 2002
Location: dev/null
Distribution: redhat, mandrake
Posts: 218

Rep: Reputation: 30
su -c "smbmount //boxname/share /mnt/sharename" will do the trick.

u can add options to it like putting a username and password behind the -o option.
man smbmount
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 06:21 AM
Permissions on a samba mount of a samba mount rimcrazy Linux - Networking 0 04-15-2005 07:57 AM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
A samba mount AndreL Linux - Networking 9 04-07-2004 11:07 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration