Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Feb 2011
#1
'# usermod -G sudo user'

Wait don't press enter without '-a' [append], oh damn to late. Yep, while modifying user groups managed to remove 'user' from all but one group.

Hoping someone would save me from the re-flash and post a list of the groups user 'user' is a member of [or even post /etc/group].

Thanks.

Maemo 5 (20.2010.36-2.002)
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#2
Originally Posted by gre View Post
'# usermod -G sudo user'

Wait don't press enter without '-a' [append], oh damn to late. Yep, while modifying user groups managed to remove 'user' from all but one group.

Hoping someone would save me from the re-flash and post a list of the groups user 'user' is a member of [or even post /etc/group].
usermod should have saved a backup of your old /etc/group in /etc/group-.
 

The Following User Says Thank You to lma For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Feb 2011
#3
Originally Posted by lma View Post
usermod should have saved a backup of your old /etc/group in /etc/group-.
Yes it did, but unfortunately I continued tinkering and wiped out the backup.
 
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#4
Code:
root:*:0:
daemon:*:1:
bin:*:2:
sys:*:3:
adm:*:4:
tty:*:5:
disk:*:6:
lp:*:7:
mail:*:8:
news:*:9:
uucp:*:10:
man:*:12:
proxy:*:13:
kmem:*:15:
dialout:*:20:user,messagebus,root,developer
fax:*:21:
voice:*:22:
cdrom:*:24:
floppy:*:25:
tape:*:26:
sudo:*:27:
audio:*:29:user,pulse,root,developer
dip:*:30:
www-data:*:33:
backup:*:34:
operator:*:37:
list:*:38:
irc:*:39:
src:*:40:
gnats:*:41:
shadow:*:42:
utmp:*:43:
video:*:44:user,root,developer
sasl:*:45:
plugdev:*:46:
staff:*:50:
games:*:60:
users:*:29999:developer
spool:*:65100:
nogroup:*:65534:
libuuid:x:100:
messagebus:x:30000:
haldaemon:x:30001:
powerdev:x:30002:
pulse:x:669:
pulse-access:x:670:user,root,developer
pulse-rt:x:671:
rtcom:x:672:
ssh:x:30003:
avahi:x:30004:
netdev:x:30005:
developer:x:30006:
PR 1.3
 

The Following User Says Thank You to gionni88 For This Useful Post:
spanner's Avatar
Posts: 253 | Thanked: 184 times | Joined on Nov 2009 @ Bristol, UK
#5
Code:
user@Nookie:~$ grep user /etc/group
dialout:*:20:user,messagebus,root
audio:*:29:user,pulse,root
video:*:44:user,root
users:*:29999:
pulse-access:x:670:user,root
PR 1.2
 

The Following User Says Thank You to spanner For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:46.