That fixed it! I booted a live beta copy of "Dapper" and mounted my / partition and proceeded to follow Chuck's advice. Now all is well. Thanks guys!!! BTW: the "usermod" command does seem a bit awkward. If I'm a member of "n" groups and I want to join another group, I have to specify ALL "n" groups plus the new group. As Jamie mentioned, there is a "groupmod" command, but in Ubuntu, it really doesn't do what I want. From the man page: The groupmod command modifies the system account files to reflect the changes that are specified on the command line. The options which apply to the groupmod command are -g gid The numerical value of the group’s ID. This value must be unique, unless the -o option is used. The value must be non-negative. Values between 0 and 99 are typically reserved for system groups. Any files which the old group ID is the file group ID must have the file group ID changed manually. -n group_name The name of the group will be changed from group to group_name. And "groupadd" just creates a new group. Mike Leo wrote:
sounds like a liveCD would make short work of this.
Boot liveCD, mount / somewhere, re-edit your /somewhere/etc/group file
--- Jared Greenwald <greenwaldjared@gmail.com> wrote:
sudo :)
On 5/10/06, Chuck Noyes <vze284qe@verizon.net> wrote:
Unfortunately, I don't have write access to /etc and I don't have read access to /etc/gshadow.
cp /etc/group /etc/group.SAVE cp: cannot create regular file `/etc/group.SAVE': Permission denied
cat /etc/gshadow cat: /etc/gshadow: Permission denied
Chuck Anderson wrote:
On Wed, May 10, 2006 at 10:24:22AM -0400, Chuck Noyes wrote:
'sudo usermod -G <new-group> <my-username>'. Now I only belong to <new-group>. That removed my username from the other groups I belonged to, including the admin group. Is there a way undo what I did? I do have a copy of /etc/group before the change.
/etc/group- should be a backup. Also, you need to restore /etc/gshadow-. I would save a copy of the current files:
cp /etc/group /etc/group.SAVE cp /etc/gshadow /etc/gshadow.SAVE
Then restore the backups:
cp /etc/group- /etc/group cp /etc/gshadow- /etc/gshadow
You can check the files for correctness:
grpck
(likewise with passwd, shadow, pwck) _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug