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? |
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. |