[ilugd] problems after usermod abuse
Hello Friend, I did a mistake :( I log into ubuntu using the primary user id 'niyaz' (created during installation). I was trying virtualbox and on the first run it told me 'niyaz' is not in vboxusers group. well, that revelation striked me quite hardly, i guess. And i fired: $ sudo usermod -G vboxusers niyaz and it transmigrated me to vboxusers. I lost the sudo power. In an attempt to rehabilitate 'niyaz' I booted the system with the Ubuntu live disk, added 'niyaz ALL=(ALL) ALL' to /etc/sudoers but it left some challenges for me: - 'niyaz' can't unlock users-admin (gui tools to manage users) although users can be added/deleted with useradd/userdel. it exits with error number 6868. - similarly 'niyaz' can't unlock services-admin (gui tool to manage services) - synaptic package is working fine ('niyaz' is getting authenticated by it) - 'niyaz' doesn't have permission to access other auto mounted partitions. please suggest me what else i need to do. Thanks to you all, Niyaz ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] problems after usermod abuse
On 8/21/08, Niyaz [EMAIL PROTECTED] wrote: Hello Friend, I did a mistake :( I log into ubuntu using the primary user id 'niyaz' (created during installation). I was trying virtualbox and on the first run it told me 'niyaz' is not in vboxusers group. well, that revelation striked me quite hardly, i guess. And i fired: $ sudo usermod -G vboxusers niyaz and it transmigrated me to vboxusers. I lost the sudo power. In an attempt to rehabilitate 'niyaz' I booted the system with the Ubuntu live disk, added 'niyaz ALL=(ALL) ALL' to /etc/sudoers but it left some challenges for me: - 'niyaz' can't unlock users-admin (gui tools to manage users) although users can be added/deleted with useradd/userdel. it exits with error number 6868. - similarly 'niyaz' can't unlock services-admin (gui tool to manage services) - synaptic package is working fine ('niyaz' is getting authenticated by it) - 'niyaz' doesn't have permission to access other auto mounted partitions. please suggest me what else i need to do. Now boot again from live cd and add yourself to admin group. And the command should have been sudo usermod -a -G vboxuser niyaz ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] problems after usermod abuse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 21 Aug 2008 11:57:46 pm Niyaz wrote: Hello Friend, I did a mistake :( I log into ubuntu using the primary user id 'niyaz' (created during installation). I was trying virtualbox and on the first run it told me 'niyaz' is not in vboxusers group. well, that revelation striked me quite hardly, i guess. And i fired: $ sudo usermod -G vboxusers niyaz and it transmigrated me to vboxusers. I lost the sudo power. In an attempt to rehabilitate 'niyaz' I booted the system with the Ubuntu live disk, added 'niyaz ALL=(ALL) ALL' to /etc/sudoers but it left some challenges for me: - 'niyaz' can't unlock users-admin (gui tools to manage users) although users can be added/deleted with useradd/userdel. it exits with error number 6868. - similarly 'niyaz' can't unlock services-admin (gui tool to manage services) - synaptic package is working fine ('niyaz' is getting authenticated by it) - 'niyaz' doesn't have permission to access other auto mounted partitions. On a terminal running in X, do following $ xhost +si:localuser:root $ sudo su - # export DISPLAY=:0 # users-admin Now in the Users Administration dialog box, navigate to Privileges box and grant appropriate privileges. All of these privileges are actually groups, user should be in. Now, after granting appropriate privileges. # exit $ xhost -si:localuser:root HTH - -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkitwbAACgkQHy+EEHYuXnSKQQCguKKg0nyOJ2f95j51R2wJ/9cN R70AoIh2MQesu1eRmb4duv7zmNh4UeW0 =S+lc -END PGP SIGNATURE- ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] problems after usermod abuse
On Thu, 21 Aug 2008 23:57:46 +0530 Niyaz [EMAIL PROTECTED] wrote: And i fired: $ sudo usermod -G vboxusers niyaz You forgot the -a (append option ). The -G removed you from every group except the vboxusers. and it transmigrated me to vboxusers. I lost the sudo power. Why you lost the sudo power ? Because you were no longer a member of the admin group. (Read the sudoers file) My user 'jasbir' on my Ubuntu system is member of the following groups $ groups jasbir adm dialout cdrom floppy audio dip video plugdev fuse lpadmin admin pulse pulse-access Make sure you are member of admin and your own user group named niyaz. For more info regarding the purpose of the various groups read /usr/share/doc/base-passwd/users-and-groups.* In an attempt to rehabilitate 'niyaz' I booted the system with the Ubuntu live disk, added 'niyaz ALL=(ALL) ALL' to /etc/sudoers When everything starts to work fine you should remove this line and check again. -- Jasbir ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] problems after usermod abuse
On 8/22/08, Mehul Ved [EMAIL PROTECTED] wrote: Now boot again from live cd and add yourself to admin group. And the command should have been sudo usermod -a -G vboxuser niyaz Forgot to add. Edit /etc/groups file on the installed ubuntu. maybe you can do it from single user mode too. Also, you can use gpasswd instead of usermod. gpasswd -a niyaz vboxusers ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/