su permission

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers su permission
# 8  
Old 06-15-2002
Hammer & Screwdriver

You guys gave me an idea with su, why let everyone run 'su' when only the users in the group 'wheel' should be able to run it.
I set su to the following permissions

-r-sr-s--- 1 root wheel 16384 Apr 13 17:08 /usr/bin/su*

(this is on openbsd 3.1 with a custom kernel)
I also had to chown root.wheel to allow people in the 'wheel' group to access 'su'. The default was root.bin.
Here are the following results;

uid=1004(taso) gid=1004(taso) groups=1004(taso)
bash-2.05$ su
bash: /usr/bin/su: Permission denied

and with a user in the wheel group;

uid=1000(crispexi) gid=1000(crispexi) groups=1000(crispexi), 0(wheel)
bash-2.05$ su

The way I set permissions;

chmod 6550 /usr/bin/su
chown root.wheel /usr/bin/su

and you're done.
# 9  
Old 06-16-2002
to me that is a scary proposition!! :eek:


That may be okay for you. However, I only have 2-4 people who need su for root to my boxes. For me that is just one more file to manage which I don't have time to manage.

I can imagine one bad scenario. In an environment that allows users to have a regular password, that type of setup can be jeopardized to gain access to root, if someone gains access to another user's password. Also, I believe that granting group permissions are considered by some to be another possible security breach.

My situation is very restrictive, such that we use one-time password at the user level and less than 5 people have root su privileges, so I don't need to manage another file for only 5 users. Also, we have standards that don't allow us to change permissions on executables that can be considered a security hole.

How many people have root that you would need to create such a file? And why do so many people have root access?

root is privileged for a reason. I hope you trust all of those people implicitly.

The bottom line is if this works for you, great. Just remember, in most cases your scenario is not feasible.

Smilie Smilie
# 10  
Old 06-16-2002
>How many people have root that you would need to create such >a file? And why do so many people have root access?

only i have root and i didn't create any files i just modified permissions to 1 executable. You can't login as root remotley and i mostly login to that box remotley and only use it locally sparingly.
# 11  
Old 06-16-2002
I use an AIX 4.3.3 box. root can only log in from the terminal.
The only way to get to root remotely is to log in using my id and su root. No other person can su root or log in to root remotely. With AIX there is an su log file that lists all attempt to su another id. When root logs in my ID is sent mail indicating the time and port of the login. Therefore I know if root is compromised. I then can search the su log files to see who attempted or sucessfully cracked my root password.
# 12  
Old 06-16-2002

Ditto with epdgesell. couldn't say it better.

If you only have a few users, what was all that discussion about creating a root.wheel? Was that just for general consumption?

I thought that was your real environment. In any case, my opinion still stands for hypothetical cases regarding root access.
# 13  
Old 06-16-2002
su has default of root.bin where i just chown'd it to root.wheel because i didnt feel like adding myself to the bin group heh
there was no file creation, i just used chmod and chown everything else was left at default values
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies

2. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

3. UNIX for Dummies Questions & Answers

really need help with permission changes

I dont understand why permission changes are being such a pain in the bum even after I manually changed them through properties....Anyone know what to do here because even thoguh in properties the permissions make me local admin over in the Cygwin its not working.. ... (5 Replies)
Discussion started by: okhawaja
5 Replies

4. UNIX for Dummies Questions & Answers


Hello Whenever we want to oen any type of file by name, we must have execute perm. in each dir. mentioned in the name. I changed the dir permission using chmod to test the validity of this statement. but i still can open the file ------- any guides would be appreciable (2 Replies)
Discussion started by: dr_mabuse
2 Replies

5. Ubuntu

Permission (I Think)

Pictures by worthamtx - Photobucket The URL is graphic view my present concern. Old partition working great sdb1 both appear on nautilus, both deliver icons to desk top. Based on the label handling of gparted results I tried following with success sudo mkdir /media/disk/data sudo chown... (1 Reply)
Discussion started by: 77yrold
1 Replies

6. UNIX for Dummies Questions & Answers

User permission

Hi all, I created testuser. by following command. /usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/ and then set its password by following command. passwd testuser When I login to system by testuser, it enters everything is ok. The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies

7. UNIX for Dummies Questions & Answers

File Permission

Hi, When I listed one directory in Sun, it showed that : -rwsr-xr-x 1 root bsmbin 78004 Oct 21 2004 bsmprsm I don't know meaning of the character "s" in "rws" above. I have searched in Sun admin documents but no result. Would you please explain it ? :) Thank you so much. (1 Reply)
Discussion started by: msg098
1 Replies

8. UNIX for Dummies Questions & Answers


What does the following permission indicate? -rwSr----- 1 oracle dba 1536 Nov 7 17:05 orapwRTMDB Thanks, Rahul. (1 Reply)
Discussion started by: rahulrathod
1 Replies

9. UNIX for Dummies Questions & Answers


Is it possible to set owner to a group? I need to have a group own a process, because there will be 3 diffrent persons that will start and stop this process. They can not use the same users cause och back logging. we need to know who end when a certian user start/stops processes. (1 Reply)
Discussion started by: dozy
1 Replies

10. UNIX for Dummies Questions & Answers

permission help

Ok heres the situation I've been studying Solaris 8 for about 6 months now and some things click in my head but others don't. One of the things that don't click are file permissions. For example I login at work and I use the ls -l command to get a long listing of the files w/ the permissions.... (2 Replies)
Discussion started by: eloquent99
2 Replies
Login or Register to Ask a Question