Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-14-2003, 05:13 PM   #1
Registered: Mar 2003
Distribution: Centos5*,OpenBSD,Debian*
Posts: 32

Rep: Reputation: 15
Smile smbmnt - setuid root

Hello all.

I am trying to mount network shares using samba and have all the documentation but I says that I need to locate smbmnt and that it needs to be setuid root.

How do I alter the UID to root for this function. Locating smbmnt is the easy bit, how do I do the setuid root bit and why is this classed as being foolish?
Old 11-16-2003, 06:15 AM   #2
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
At the risk of being flogged (again) I will answer your question.

The file needs to be owned by root if not:
chown root:root smbmnt
To make the file suid:
chmod u+s smbmnt

Dangers of SUID Shell Scripts

Last edited by /bin/bash; 11-16-2003 at 08:22 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 08:47 PM
smbmnt must be installed suid root figadiablo Linux - Networking 29 08-10-2007 12:12 AM
How to setuid root abridge Linux - Newbie 4 04-06-2005 04:59 PM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 02:42 AM
Bash script to email setuid root files deoren Member Success Stories 1 01-30-2005 10:56 AM

All times are GMT -5. The time now is 07:23 PM.

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