View previous topic :: View next topic |
Author |
Message |
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Tue Feb 07, 2006 11:03 am Post subject: user belongs to cdrom, not users[solved] |
|
|
Hi,
I was messing around trying to get xmms to use the cdrom without needing root priviledges and I've done something which means any files produced by my user now appear as cdrom, not users and the xmms freezes when I try and access the cdrom. As root the system requires a ctrl-alt-backspace to restart after trying to access a cd in xmms as root. Any ideas? My system is relatively stable, only installed jan 1st and here is my /etc/groups file:
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm,haldaemon
lp:x:7:lp
mem:x:8:
kmem:x:9:
wheel:x:10:root,ja
floppy:x:11:root,haldaemon
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:man
cron:x:16:cron
console:x:17:
audio:x:18:ja
cdrom:x:19:ja,haldaemon
dialout:x:20:root
ftp:x:21:
sshd:x:22:
at:x:25:at
tape:x:26:root
video:x:27:root,ja
squid:x:31:squid
gdm:x:32:gdm
xfs:x:33:xfs
games:x:35:ja
named:x:40:named
mysql:x:60:
postgres:x:70:
cdrw:x:80:haldaemon
nut:x:84:
usb:x:85:ja,haldaemon
vpopmail:x:89:
users:x:100:games,ja,root
nofiles:x:200:
qmail:x:201:
postfix:x:207:
postdrop:x:208:
smmsp:x:209:smmsp
slocate:x:245:
portage:x:250:portage
utmp:x:406:
nogroup:x:65533:
nobody:x:65534:
messagebus:x:407:
haldaemon:x:408:haldaemon
rpc:x:111:
plugdev:x:409:ja
ntp:x:123:
Please help! Also, I've been told editing /etc/group isn't wise, and the evidence backs this up, but how can I add a user to a group without doing this.
Thank you
Last edited by BrummieJim on Tue Feb 07, 2006 6:07 pm; edited 1 time in total |
|
Back to top |
|
|
jomen Guru
Joined: 04 Jan 2006 Posts: 536 Location: Leipzig, Germany
|
Posted: Tue Feb 07, 2006 11:37 am Post subject: |
|
|
Quote: | but how can I add a user to a group without doing this |
...sorry, but just to the above: gpasswd is the commad to edit the groups-file
man gpasswd |
|
Back to top |
|
|
_loki_ l33t
Joined: 18 Dec 2003 Posts: 680 Location: in the shell
|
Posted: Tue Feb 07, 2006 11:40 am Post subject: |
|
|
why don't ypu make cdrom accessable for any users in fstab? |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Tue Feb 07, 2006 5:10 pm Post subject: Re: user belongs to cdrom, not users |
|
|
BrummieJim wrote: | any files produced by my user now appear as cdrom, not users |
That means you changed the primary group to cdrom, instead of adding cdrom as an additional group. First change back the primary group to users:
Code: | # usermod -g users <your_user> |
Then add your user to cdrom group:
Code: | # gpasswd -a <your_user> cdrom |
You will need to log out and log back in for those to take effect. |
|
Back to top |
|
|
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Tue Feb 07, 2006 6:06 pm Post subject: |
|
|
Genius! Worked fantastically and solved the problem. Thank you very much for the timely help! |
|
Back to top |
|
|
|
|
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
|
|