Solved

FreeBSD can't 'su'

Posted on 2001-07-04
3
548 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
Comment Utility
I think you should be in the group `wheel'.
0
 

Author Comment

by:crash020297
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

744 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

16 Experts available now in Live!

Get 1:1 Help Now