LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2009, 06:31 AM   #1
numtre
Member
 
Registered: Dec 2008
Location: Ireland
Distribution: Ubuntu 8.10
Posts: 45

Rep: Reputation: 15
Angry Users and Groups, Root Access, Ubuntu


I've already posted this in the ubuntu section with no luck... i really would like a fix to this because i want to use remastersys to redistribute my ubuntu to friends, but i cannot do it with this bug.

also, how do i get to login from root? what i thought was the root password ain't working!

basically here's the story: after i tried to add a new user, I cannot open the Users and Groups panel anymore, I get a message saying I am not allowed to accedd the configuration.

I also tried accessing it from the terminal using users-admin and the error i get is

Code:
invalid string constant "#E4E4E4", expected valid string constant

(users-admin:7611): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Any clue?invalid string constant "#E4E4E4", expected valid string constant

(users-admin:7611): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

Also it is interestimng to note that afgter adding that user i couldnt sudo anymore with my old one. I had to visudo and add myself to sudoers list.
Could this be because i called the other user simply admin?

Any clue is most welcome.
 
Old 03-26-2009, 03:19 PM   #2
Earl Parker II
Member
 
Registered: Jan 2002
Location: Shelby, NC, US
Distribution: Linux Mint 19.2
Posts: 130

Rep: Reputation: 17
I don't use Ubuntu (Slackware 12.2) but here's what I'd try:

1. To reset the root password...

1. Put your install CD in the drive and reboot the machine (booting from the install CD, of course). Login as root.
2. Create a directory, something like /mnt/temp.
3. Mount your root partition to the directory you've created:
mount -t ext3 /dev/hda1 /mnt/temp
Be sure to substitute your filesystem and root partition.
4. Once it's mounted:
chroot /mnt/temp
5. Enter 'passwd' or 'passwd root' and you'll be prompted to reset the root password.
6. Remove the install CD, reboot and login.

2. Next, you might want to remove the last user you added, just to be safe:

userdel <user>

If that doesn't work, edit the /etc/passwd and /etc/shadow files and remove the line for that user.

3. Referring to 'invalid string constant "#E4E4E4", expected valid string constant
', #E4E4E4 is RGB hex for a light gray color, if that lights any bulbs.

4. Naming the new user something other than 'admin' might not be a bad idea.
 
Old 03-27-2009, 03:56 AM   #3
numtre
Member
 
Registered: Dec 2008
Location: Ireland
Distribution: Ubuntu 8.10
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Earl Parker II View Post
I don't use Ubuntu (Slackware 12.2) but here's what I'd try:

1. To reset the root password...

1. Put your install CD in the drive and reboot the machine (booting from the install CD, of course). Login as root.
2. Create a directory, something like /mnt/temp.
3. Mount your root partition to the directory you've created:
mount -t ext3 /dev/hda1 /mnt/temp
Be sure to substitute your filesystem and root partition.
4. Once it's mounted:
chroot /mnt/temp
5. Enter 'passwd' or 'passwd root' and you'll be prompted to reset the root password.
6. Remove the install CD, reboot and login.

2. Next, you might want to remove the last user you added, just to be safe:

userdel <user>

If that doesn't work, edit the /etc/passwd and /etc/shadow files and remove the line for that user.

3. Referring to 'invalid string constant "#E4E4E4", expected valid string constant
', #E4E4E4 is RGB hex for a light gray color, if that lights any bulbs.

4. Naming the new user something other than 'admin' might not be a bad idea.
tHankS for the tips! Right now my issue is fixed, i fixed it last night, by logging in as root, deleting the admin user i created, and editing the visudo file... it seems ok so far but i still might have some users issues... so i'll keep your tips somewhere safe! thx a bunch!
 
  


Reply

Tags
groups, root, ubuntu, users


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu question: cannot open System > Administration > Users and Groups numtre Ubuntu 3 03-27-2009 03:58 AM
Samba Users and groups with different access? logonuser Linux - Server 2 09-07-2008 07:38 AM
users with root access? ginda Linux - Security 1 08-20-2007 06:01 AM
root can access a partition and see owners/groups/perms, user gets question marks lurko Debian 2 10-05-2006 11:30 AM
How to allow modem access to non-root users tadelste JDS 0 10-19-2004 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration