Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SU Problem - Not The Regular One [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Maheriano
l33t
l33t


Joined: 18 Jun 2005
Posts: 623
Location: Calgary, Alberta

PostPosted: Fri Oct 07, 2005 4:49 am    Post subject: SU Problem - Not The Regular One [SOLVED] Reply with quote

I got my system all set up and just put KDE on it. Outside KDE at the command line, I can log into root no problem. But when I log into KDE under the user I created and try to su to root, it won't work. Same password, what's up? Does my user need to be part of a certain group to use su? This is wierd.
_________________
Current project - carputer running.........Gentoo?


Last edited by Maheriano on Fri Oct 07, 2005 5:15 am; edited 1 time in total
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Fri Oct 07, 2005 4:50 am    Post subject: Reply with quote

Make sure your user is part of the wheel group.

--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
Maheriano
l33t
l33t


Joined: 18 Jun 2005
Posts: 623
Location: Calgary, Alberta

PostPosted: Fri Oct 07, 2005 4:51 am    Post subject: Reply with quote

Damn, that was quick. Good eye, I'm only part of users. I vaguely remember the command to change it, is it modgroup or chggroup? Something like that.
_________________
Current project - carputer running.........Gentoo?
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Fri Oct 07, 2005 4:56 am    Post subject: Reply with quote

Maheriano wrote:
Damn, that was quick. Good eye, I'm only part of users. I vaguely remember the command to change it, is it modgroup or chggroup? Something like that.

You can use usermod -G with the supplemental goups you want to be in. Man page:
Code:
 -G group1[ ,group2,...,  [groupN]]]
              A list of supplementary groups which the user is also a member
              of. Each group is separated from the next by a comma, with no
              intervening whitespace. The groups are subject to the same
              restrictions as the group given with the -g option. If the user
              is currently a member of a group which is not listed, the user
              will be removed from the group. This behaviour can be changed
              via -a option, which appends user to the current supplementary
              group list.

So for instance:
Code:
#usermod -G wheel,users,audio,games login_name


--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
Maheriano
l33t
l33t


Joined: 18 Jun 2005
Posts: 623
Location: Calgary, Alberta

PostPosted: Fri Oct 07, 2005 4:58 am    Post subject: Reply with quote

sonikntails wrote:
Maheriano wrote:
Damn, that was quick. Good eye, I'm only part of users. I vaguely remember the command to change it, is it modgroup or chggroup? Something like that.

You can use usermod -G with the supplemental goups you want to be in. Man page:
Code:
 -G group1[ ,group2,...,  [groupN]]]
              A list of supplementary groups which the user is also a member
              of. Each group is separated from the next by a comma, with no
              intervening whitespace. The groups are subject to the same
              restrictions as the group given with the -g option. If the user
              is currently a member of a group which is not listed, the user
              will be removed from the group. This behaviour can be changed
              via -a option, which appends user to the current supplementary
              group list.

So for instance:
Code:
#usermod -G wheel,users,audio,games login_name


--sonik




dan@tux ~ $ usermod -G wheel,users,audio,games,cdrom dan
bash: usermod: command not found
_________________
Current project - carputer running.........Gentoo?
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Fri Oct 07, 2005 5:00 am    Post subject: Reply with quote

Maheriano wrote:
sonikntails wrote:
Maheriano wrote:
Damn, that was quick. Good eye, I'm only part of users. I vaguely remember the command to change it, is it modgroup or chggroup? Something like that.

You can use usermod -G with the supplemental goups you want to be in. Man page:
Code:
 -G group1[ ,group2,...,  [groupN]]]
              A list of supplementary groups which the user is also a member
              of. Each group is separated from the next by a comma, with no
              intervening whitespace. The groups are subject to the same
              restrictions as the group given with the -g option. If the user
              is currently a member of a group which is not listed, the user
              will be removed from the group. This behaviour can be changed
              via -a option, which appends user to the current supplementary
              group list.

So for instance:
Code:
#usermod -G wheel,users,audio,games login_name


--sonik




dan@tux ~ $ usermod -G wheel,users,audio,games,cdrom dan
bash: usermod: command not found

You have to be root to run it. So you would need to log out of your user account and then log back in as root.

--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
Maheriano
l33t
l33t


Joined: 18 Jun 2005
Posts: 623
Location: Calgary, Alberta

PostPosted: Fri Oct 07, 2005 5:06 am    Post subject: Reply with quote

I'm an idiot.
_________________
Current project - carputer running.........Gentoo?
Back to top
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Fri Oct 07, 2005 5:10 am    Post subject: Reply with quote

LOL. Its all good man, its late (at least here it is). Just add solved to the title of the post.

--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
Maheriano
l33t
l33t


Joined: 18 Jun 2005
Posts: 623
Location: Calgary, Alberta

PostPosted: Fri Oct 07, 2005 5:15 am    Post subject: Reply with quote

11pm
solved added
_________________
Current project - carputer running.........Gentoo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum