LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   smbmnt - setuid root (https://www.linuxquestions.org/questions/linux-general-1/smbmnt-setuid-root-116080/)

harperonline 11-14-2003 04:13 PM

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?

/bin/bash 11-16-2003 05:15 AM

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


All times are GMT -5. The time now is 09:24 PM.