Solved

FreeBSD can't 'su'

Posted on 2001-07-04
3
551 Views
Last Modified: 2009-12-16
Hi,
I've been learning FreeBSD by starting with a minimal installation and working my way up to a fully configured badass workstation! But I'm forced to use my root account way too much because when I try to 'su' I get the message "You are not in the correct group to su root". What group do I have to be in?! I've looked over the files /etc/passwd /etc/master.passwd /etc/group and /etc/login.conf and made sure that everything was kosher but I can't seem to figure it out.
I have been reading the UNIX system administration handbook and I haven't found anything relevant in there yet.
Thanks for any help,
Chip
0
Comment
Question by:crash020297
3 Comments
 
LVL 1

Expert Comment

by:jlhch
ID: 6253688
I think you should be in the group `wheel'.
0
 

Author Comment

by:crash020297
ID: 6253861
well, ok. I just wasn't sure if that raised some sort of security issue. Will that present some kind of risk?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6255743
As a security measure FreeBSD requires each user that is to have su privs to be a member of the wheel group. Since you already have the root password there isn't an additional risk imposed by making your account a member of the wheel group and it is a normal and correct thing to do. I believe the intent of restricting su access to members of the wheel group is to prevent folks for trying to guess a password for root by repeated su attempts. It also will prevent the ordinary user from being able to change to some other account, thus improving accoutability. To be able to invoke su, simply edit /etc/group and add your login name to the wheel group, like:

wheel:*:0:root,jlevie
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
create user in TSM 7 589
removing nim resources 5 48
Execute multiple curl cmds with sleep and send output to file 10 89
retrieve nuemaric value from txt file in shell script 3 61
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now