Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-10-2004, 10:45 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Distribution: Solaris 9
Posts: 2
Rep:
|
changing permissions and the UID...
I am tying to make it so that the user has access to ping, since right now only root has access to that. How do you use chmod to change the UID? since I believe this is what needs to be set. Thanks in advance for any replies.
|
|
|
03-11-2004, 12:13 AM
|
#2
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
you probably want to do a chmod 755 ping. To actually change the uid (aka the owner of the file) you would use chown user:group file
|
|
|
03-11-2004, 09:14 AM
|
#3
|
LQ Newbie
Registered: Mar 2004
Distribution: Solaris 9
Posts: 2
Original Poster
Rep:
|
I've tried both "chmod 755 ping" and chown to make root the owner of the file, but I still can't get this to work. Any other suggestions? Thanks for the last one by the way.
|
|
|
03-11-2004, 09:47 AM
|
#4
|
Member
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282
Rep:
|
Its nothing to do with the permissions on the file. They should be set with
-r-sr-xr-x root:bin ping
The problem is that ping is in the /usr/sbin directory. The sbin directory is not normally in normal users path. If you want to use ping you could either
1 add /usr/sbin to the users path either locally or system wide or
2 - copy the sbin binary into normal bin directory (/usr/bin)
3 - just use /usr/sbin/ping
The ping command runs as root (hence the UID set) but should have execute permissions for anyone. Changing the permissions on the file will lead to ping not having the correct permissions to run and probably will not work.
The binaries located in /usr/sbin (normally /sbin) are special because
1 they are there fore system recover (i.e single user mode)
2 They have all the special library functions contained in the binary so no external libraries are needed (which would normally be available in multi user mode (all the file systems mounted).
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|