LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-14-2003, 04:13 PM   #1
harperonline
Member
 
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, 05:15 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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 07:22 AM.
 
  


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 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 07:47 PM
smbmnt must be installed suid root figadiablo Linux - Networking 29 08-09-2007 11:12 PM
How to setuid root abridge Linux - Newbie 4 04-06-2005 03:59 PM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 01:42 AM
Bash script to email setuid root files deoren LinuxQuestions.org Member Success Stories 1 01-30-2005 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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