Re: Root privilege (SOLVED)
On Fri, 12 Jan 2007 21:28:50 -0500
cga2000 <cga2000@optonline.net> wrote:
> first of all you have to remember that:
>
> # usermod -G adm myuser
>
> .. wipes out all your other groups .. so you have to try and figure
> out what groups you were in (or restore from a backup) .. and then
> issue a:
>
> # usermod -G adm,grp1,grp2,grp3 myuser
>
> .. don't leave out the commas between the groups..!
>
> then every time you want to actually view the logs you have to issue
> a:
>
> $ newgrp adm
Why not simply use 'adduser myuser newgroup'?
> I use cdrecord.
>
> But the problem is that my burner is defined like so:
>
> crw------- 1 root root 21, 0 2002-08-29 18:00:48.-0400 /dev/sg0
>
> So only root has access to it. Mind you I could chown it over to my
> user .. or change the group to cdrom and give it group rw
> permissions. The trouble about this approach that all these little
> changes add up and I tend to forget these things. Some way or other
> I suspect this'd come back and bite me when I least expect it. And
> then with this strategy I'd still have to newgrp to the cdrom group
> before I could do anything, right..?
AFAIK cdrecord can be installed setuid (dpkg-reconfigure ...). Then add
yourself to the cdrom group. While this is not the best solution it's
still better than burning cdroms as root.
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
Reply to: