LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-15-2002, 03:46 PM   #1
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
RH7.3 and smbmount as normal user


When using RH 7.2 you could (After setting the suid bit on /usr/bin/smbmount) as a normal user mount an smb share with the following command

smbmount //server/share /mnt/server

With RH7.3 when i do that i get the following error (After setting the suid bit)

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

When i leave the suid bit it tells me to set it
 
Old 05-16-2002, 04:16 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
How about adding the entries to fstab so that users can use mount?

Quote:
//newton/dvd /mnt/smb/newton/dvd smbfs noauto,user,_netdev 0 0
//newton/cdrw /mnt/smb/newton/cdrw smbfs noauto,user,_netdev 0 0
//newton/c /mnt/smb/newton/c smbfs noauto,user,_netdev 0 0
//newton/alex /mnt/smb/newton/alex smbfs noauto,user,_netdev 0 0
//newton/baseef /mnt/smb/newton/baseef smbfs noauto,user,_netdev 0 0
 
Old 02-21-2003, 02:19 PM   #3
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Rep: Reputation: 15
sewer_monkey

i'm getting the same error. could you please explain to me what fstab is and how to edit it. thanks

mike
 
Old 02-24-2003, 10:38 PM   #4
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Rep: Reputation: 15
LIBSMB

libsmb ERROR!!!! i figured it out. This is for those who need help.
I've only tried this on RH8.0

if you're trying to mount folders with a user (not root) then:

chmod 4777 /path/to/smbmnt (usually it's "/usr/bin/smbmnt")

Then,
make sure that you

chmod 700 /path/to/smbmount and
chmod 700 /path/to/smbumount

Finally,

go to preferences and make sure that you are mounting to the default folder:

/tmp/mnt/

It should work after that.

Last edited by fernin8r; 02-24-2003 at 10:41 PM.
 
  


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
how can i run smbmount automatically when a user login rddreamz Linux - Networking 4 02-18-2006 03:10 AM
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
smbmount not mounting when logged on as a user hunan6 Slackware 1 02-05-2005 08:27 PM
SMBMount as user lcdial Linux - Networking 6 11-03-2004 03:58 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM

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

All times are GMT -5. The time now is 06:53 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