SUID vs SGID
hi guys
i have a simple question about sgid and suid . as we know when we set suid and sgid and for a file or a command , when we execute command, that will be executed respectively by owner and group permission . my question is about a simple command like ping . this command has suid why when we set sgid for this command and unset suid users cannot execute ping ??? i set 2775 for this command instead of 4755 why users cannot execute ping ?? group has full permission and sgid shows every one execute this command as group permission .but why users cannot execute ping when we set sgid instead of suid ?? and another question is about write command which has sgid instead of suid ?? why when it must have sgid instead of suid ??? |
Quote:
|
Code:
> ls -l /bin/ping Code:
> ls -l /usr/bin/write Now, I'm not sure why not create a separate group 'xgroup' and give it access to open/close sockets for 'ping' command. |
Quote:
|
All times are GMT -5. The time now is 06:09 PM. |