The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to disable SU right civic2005 SUN Solaris 4 12-16-2008 11:19 AM
Disable GUI HP-UX mdjuarsa HP-UX 1 10-06-2007 07:51 AM
disable rsh sriram.s AIX 3 05-11-2007 12:18 PM
Disable X window XP_2600 SUN Solaris 4 09-24-2006 11:18 AM
Disable X bbutler3295 UNIX for Dummies Questions & Answers 8 03-19-2002 07:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-14-2006
sak900354 sak900354 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 31
disable su

i have this unix version "unix v/386" and i want to disable su
kindly help me
  #2 (permalink)  
Old 06-14-2006
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
You can simply removed the execute attribute from su preventing anyone from running it. However, may I suggest limiting it usage?

For example, on my Solaris 8 servers, all system administrators have a primary group of sysadmin (gid 14). The permissions of su have been changed such that only members of that group can execute su. Historically, the wheel account has been used to limit su(1M) access but the sysadmin group is not used by any other Solaris package. It also makes sense.

Code:
    # cd /usr/bin
    # ls -la su
    -r-sr-xr-x   1 root     sys        21192 Jun 15 14:42 su
    # /usr/bin/chgrp sysadmin su
    # /usr/bin/chmod 04750 su
    # ls -la su
    -rwsr-x---   1 root     sysadmin   21192 Jun 15 14:42 su
    # cd /sbin
    # ls -la su.static
    -r-xr-xr-x   1 root     sys       524372 Jun 15 14:42 su.static
    # /usr/bin/chgrp sysadmin su.static
    # /usr/bin/chmod 04750 su.static
    # ls -la su.static
    -rwsr-x---   1 root     sysadmin  524372 Jun 15 14:42 su.static
With a few customizations, I'm sure it will work for your OS as well.
  #3 (permalink)  
Old 06-15-2006
sak900354 sak900354 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 31
************************
Thank You
************************
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0