Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-26-2010, 06:14 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 10

Rep: Reputation: 0
su: cannot set groups: Operation not permitted

Hi there,
I am having a problem when I try to login as su.I type the command SU and then the password as normal and I get su: cannot set groups: Operation not permitted

I am not sure what could of caused this error and how to fix it could anyone help me


Old 02-26-2010, 06:50 PM   #2
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,267
Blog Entries: 29

Rep: Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461Reputation: 2461

Welcome to LQ!

What happens when you login as a user then issue the command 'su' at the console prompt?

excerpt from 'man su';

su - run a shell with substitute user and group IDs
su [OPTION]... [-] [USER [ARG]...]

Change the effective user id and group id to that of USER.

-, -l, --login
make the shell a login shell
-c, --commmand=COMMAND
pass a single COMMAND to the shell with -c
-f, --fast
pass -f to the shell (for csh or tcsh)
-m, --preserve-environment
do not reset environment variables
same as -m
-s, --shell=SHELL
run SHELL if /etc/shells allows it
display this help and exit
output version information and exit

A mere - implies -l. If USER not given, assume root.
Just a few links to aid you to gaining some understanding;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
Getting Started with Linux
Advanced Bash-Scripting Guide
Linux Home Networking

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
Old 02-27-2010, 06:43 PM   #3
LQ Newbie
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for the reply I made a mistake by chown from root to admin on /etc/* . this caused it to happen I changed the owner back to root via disc boot and rescue, but that made no diffrence. I was able to sudo but I did not want the hassle of sorting it all out so I upgraded to 12 from 11 and it now works fine, I used my backup drives to back the data up first.

thanks for the response



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
su: cannot set groups: Operation not permitted myretribution79 Linux - Newbie 5 11-22-2009 04:32 AM
Warning: GDB: Failed to set controlling terminal: Operation not permitted dschornack Programming 0 08-04-2009 08:14 PM
su: cannot set groups: Operation not permitted mfb Linux - Security 10 12-04-2008 05:17 AM
SET failed / operation not permitted hattrick Linux - Networking 1 11-30-2008 10:20 PM
Can´t set DMA : HDIO_SET_DMA failed: Operation not permitted tiuz Linux - Hardware 13 03-17-2006 12:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration