LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2004, 09:15 AM   #1
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
smbmnt


Hey all...

Ran into a little difficulty one of those long lonely nights without net...

I currently mount my home directory on my samba server onto my Linux work station using
# mount -t smbfs -o username=trevor //192.168.100.1/trevor /mnt/smb_homedir/

I setup my Mozilla's (both 'nux and 'doze) to place mail directory and other settings on that mount. Keeps things common including filters etc. Now i set this up in windows and used in Linux on several occasions, but i've never made changes significant enough to necessitate much writing to the mount.

The above command, when run, says that only root can do that. I sat, added it to the /etc/fstab,
(//192.168.100.1/trevor /mnt/smb_homedir smbfs noauto,user,rw 0 2). WHen i attempt to mount this now as trevor. I do actually get the password prompt, but i'm greeted with

"smbmnt must be installed suid root for direct user mounts (666,666)
smbmnt failed: 1"

man smbmnt:
NAME
smbmnt - helper utility for mounting SMB filesystems

SYNOPSIS
smbmnt {mount-point} [-s <share>] [-r] [-u <uid>] [-g <gid>] [-f <mask>] [-d <mask>] [-o <options>] [-h]

DESCRIPTION
smbmnt is a helper application used by the smbmount program to do the
actual mounting of SMB shares.smbmnt can be installed setuid root if
you want normal users to be able to mount their SMB shares.

A setuid smbmnt will only allow mounts on directories owned by the
user, and that the user has write permission on.

The smbmnt program is normally invoked by smbmount(8). It should not be
invoked directly by users.

smbmount searches the normal PATH for smbmnt. You must ensure that the
smbmnt version in your path matches the smbmount used.

Thoughts assistance....
 
Old 08-12-2004, 12:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try running:
chmod +s /path/to/smbmnt
 
Old 08-13-2004, 11:01 AM   #3
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Original Poster
Rep: Reputation: 30
Thanks man...

I notice however that the mount command still doesn't work. When i use smbmout it works great, but using the GUI, mount is used an i end up with error sayin only roor can mount said partition.

Any light on that matter...?
I have no issue using the console though...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
smbmnt must be installed suid root figadiablo Linux - Networking 29 08-09-2007 11:12 PM
question about smbmnt/smbmount Lleb_KCir Linux - General 7 11-23-2004 01:16 AM
smbmnt not setting right uid mdkelly Linux - Networking 0 11-12-2004 10:25 AM
smbmnt - setuid root harperonline Linux - General 1 11-16-2003 05:15 AM
what is the diffrence between smbmount and smbmnt,Please answer me!Thanks! whepin Linux - Networking 1 12-20-2001 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 AM.

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