LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2014, 12:59 AM   #16
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120

Quote:
Originally Posted by Anil Kagi View Post
'Keys: Press S to skip mounting or M for manual recovery'. This time I pressed only M and created another user and exited and restarted. But again the same message appeared.
Message appears due to impossibility to mount filesystems and it's irrelevant to your users accounts if you had enough free space to create new account. And since you got this message before creating new user, seems free space isn't an issue.
It would be sane to check (in recovery mode) which filesystems you have mounted. Does all the entries from fstab mounted with proper options?
And do you have enough free space? What "df -h" shows?
And you can run e2fsck on you partitions to check it's status.
 
Old 12-14-2014, 04:53 AM   #17
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
Message appears due to impossibility to mount filesystems and it's irrelevant to your users accounts if you had enough free space to create new account. And since you got this message before creating new user, seems free space isn't an issue.
It would be sane to check (in recovery mode) which filesystems you have mounted. Does all the entries from fstab mounted with proper options?
And do you have enough free space? What "df -h" shows?
And you can run e2fsck on you partitions to check it's status.
Thank you Teufel,

Yes, I have enough free space. I checked by logging on with LiveUSB. I saw that all the entries from fstab mounted with proper options.

The df -h shows as below;

Click image for larger version

Name:	df -h.jpg
Views:	14
Size:	39.9 KB
ID:	17117

The e2fsck status is as below;

Click image for larger version

Name:	e2fsck.jpg
Views:	14
Size:	161.7 KB
ID:	17118

Thank you for your concern Teufel

Regards

Anil
 
Old 12-14-2014, 05:01 AM   #18
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
You can't create users with existing names.
As root:
Create new users with unique name and set unique password.
Code:
useradd -m -G users -s /bin/bash <newusername>
passwd <newusername>
Copy all the files & directories from old user's home to new one and change ownership:
Code:
cp -R /home/<oldusername> /home/<newusername> && chown -R <newusername>.users /home/<newusername>
That's all.

Try to login as new user and test it. If all seems good, do the same for other users.
Once you system became usable, you can remove old users and their home directories.
Teufel,

Since this did not resolve the issue I just had an after-thought from your suggestion.

Since I have backed up all the users' documents and files, I was thinking if I could use the recovery console to delete all the old user accounts including the Root, and create new user accounts. Will it resolve my issue? If so, how to do that?

And can I completely delete the etc/passwd file by logging in with LiveUSB and later generate an entirely new etc/passwd file with the help of the recovery console? If so how to do it?

Thank you for being with me

Regards

Anil

Last edited by Anil Kagi; 12-14-2014 at 05:55 AM.
 
Old 12-14-2014, 09:22 AM   #19
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
I wouldn't suggest to delete or modify /etc/password directly.You already ran into problem due to modifying it. There are few utilities to manage users (useradd, userdel, usermod, passwd and so on).
Before managing your users, boot into liveCD, mount your Mint partition and look at <mountpoint>/etc directory. There should be passwd backup file named as "passwd-" or "passwd.bak". System creates such a backup every time you using accounts managing tools. If so, copy it over your damaged passwd and try to reboot and log in.

But if you still want to modify it directly or delete it at all, you have to keep in mind that you shouldn't delete root user.
You might look there at linuxmint passwd sample:
https://www.ibm.com/developerworks/c...iles19?lang=en
 
Old 12-14-2014, 01:58 PM   #20
sounds greek 2 me
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Anil Kagi View Post
Thank you sounds greek 2 me, for coming.

I tried the 'usermod' as suggested in the recovery mode. But as you said the damage has been done. It didn't work.

Yes, really I shouldn't have done manual editing with my kind of ignorance of the OS. I took suggestions from the web and tried somethings earlier. Since they didn't work, I tried this reckless thing.

Thank you for the information and caution sounds greek 2 me.

Regards

Anil
Don't feel bad. We all had our share of tweaking with our computers and operating systems, it's how we learn and experience is the best teacher with success and failures.

Awhile back, Leo Leporte who's been around computers and technology, messed up his ubuntu by following many suggestions from an IRC channel. His main OS of choice is Apple's IOS and maybe some windows. He dabbles with linux on a limited basis. As you can see, even a veteran computer user like Leo can make mistakes.

Good luck

Last edited by sounds greek 2 me; 12-14-2014 at 02:02 PM.
 
Old 12-14-2014, 03:44 PM   #21
sounds greek 2 me
LQ Newbie
 
Registered: Dec 2014
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Anil Kagi View Post
Why I did it?
When I or any other users tried to login, I wanted that the Login prompt should appear instead of the user list appearing by default.
In Cinnamon, you can change the login theme, It will still be GUI based though. Some login themes will show both the userlist and login box and others will show just the login box ( No User Lists ).

To access the login themes, click on Menu > Administration > Login Window and enter your sudo password.

A few themes for example, the Split, Wooden, and Simple themes show the login box. You enter the username and then the password.

You can preview the themes by clicking on the radio button next to the theme and then the gear icon on top. When you do this, the theme will appear in a new window. To close the theme, right-click on the theme name on the bottom taskbar and select close.

I'm not sure you can do this now because of your current situation but if you decide to re-install LM Cinnamon, this is how you can change the login theme.

Last edited by sounds greek 2 me; 12-14-2014 at 03:50 PM.
 
Old 12-14-2014, 05:21 PM   #22
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Anil Kagi View Post
Thank you jailbait for coming,

Nice diagnostic explaination. That explains it all. Yes this is what might have happend in my case.



Forgive my ignorance. Could you please give me a step by step guidance as to how to do this?

Thank you for your compassion.

Regards

Anil
if you want to fix a user called joe then log in as root and type:

chown -R joe /home/joe

-----------
Steve Stites
 
Old 12-14-2014, 07:22 PM   #23
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
change them BACK

some OS's use 1000 and UP !!!!
Other OS's use 500 and UP

on a 1000 and up you can NOT just arbitrarily change them

now

you can reset a 1000 system to use 500
or
reset a 500 system to use 1000

i do that for shared file permissions for the SAME user ( me) on opensuse and ScientificLinux on a shared drive


but ,you really can not go backwards on the id's
999
998
997

because ROOT user is 1000 OR 500
and the FIRST!!! NON ROOT user is 1001 or 501

and THAT 1001 or 501 is REQUIRED for sudo and for most things

Last edited by John VV; 12-14-2014 at 07:25 PM.
 
Old 12-31-2014, 11:13 PM   #24
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
I wouldn't suggest to delete or modify /etc/password directly.You already ran into problem due to modifying it. There are few utilities to manage users (useradd, userdel, usermod, passwd and so on).
Before managing your users, boot into liveCD, mount your Mint partition and look at <mountpoint>/etc directory. There should be passwd backup file named as "passwd-" or "passwd.bak". System creates such a backup every time you using accounts managing tools. If so, copy it over your damaged passwd and try to reboot and log in.

But if you still want to modify it directly or delete it at all, you have to keep in mind that you shouldn't delete root user.
You might look there at linuxmint passwd sample:
https://www.ibm.com/developerworks/c...iles19?lang=en
Quote:
Originally Posted by sounds greek 2 me View Post
Don't feel bad. We all had our share of tweaking with our computers and operating systems, it's how we learn and experience is the best teacher with success and failures.

Awhile back, Leo Leporte who's been around computers and technology, messed up his ubuntu by following many suggestions from an IRC channel. His main OS of choice is Apple's IOS and maybe some windows. He dabbles with linux on a limited basis. As you can see, even a veteran computer user like Leo can make mistakes.

Good luck
Quote:
Originally Posted by sounds greek 2 me View Post
In Cinnamon, you can change the login theme, It will still be GUI based though. Some login themes will show both the userlist and login box and others will show just the login box ( No User Lists ).

To access the login themes, click on Menu > Administration > Login Window and enter your sudo password.

A few themes for example, the Split, Wooden, and Simple themes show the login box. You enter the username and then the password.

You can preview the themes by clicking on the radio button next to the theme and then the gear icon on top. When you do this, the theme will appear in a new window. To close the theme, right-click on the theme name on the bottom taskbar and select close.

I'm not sure you can do this now because of your current situation but if you decide to re-install LM Cinnamon, this is how you can change the login theme.
Quote:
Originally Posted by jailbait View Post
if you want to fix a user called joe then log in as root and type:

chown -R joe /home/joe

-----------
Steve Stites
Quote:
Originally Posted by John VV View Post
change them BACK

some OS's use 1000 and UP !!!!
Other OS's use 500 and UP

on a 1000 and up you can NOT just arbitrarily change them

now

you can reset a 1000 system to use 500
or
reset a 500 system to use 1000

i do that for shared file permissions for the SAME user ( me) on opensuse and ScientificLinux on a shared drive


but ,you really can not go backwards on the id's
999
998
997

because ROOT user is 1000 OR 500
and the FIRST!!! NON ROOT user is 1001 or 501

and THAT 1001 or 501 is REQUIRED for sudo and for most things
Thank you for coming Teufel, sounds greek 2 me, Jailbait & John VV;

John VV that was a vital piece of information. Thanks for that.

I tried much but the issue was not resolved so as a last resort I backed up everything by logging in with Live USB and reinstalled the OS. But now I won't do anything without consulting you expert minds. Please guide me to customize my Login Screen.

Now that I am back to square-1, I want to customize my Login screen. Here below are my requirements;

1. I want to add a 'personal' Login background image.

2. I want the Login-screen to display a personalized message.

3. I don't want the Login-screen to display a list of usernames. [I haven't added any standard users yet. I am the root and the sole user now.]

4. I want the Login-screen to just prompt for entering the Login name and the password.

My system specifications: Samsung RV509, i3, 300GB HDD, 3GB Ram, Dual boot Windows7 & LM 17 cinnamon qiana.

These are my [fantacy?] requirements. Can these be accomplished? Could you please forgive my ignorance and kindly help me by giving a step by step guidance? I would be greatfull to you all lovely guys. Please help me customize my Login-screen.

Thank you & Regards.

Wish you all & LQ, a happy new year 2015.

Anil

Last edited by Anil Kagi; 12-31-2014 at 11:17 PM. Reason: Typo
 
Old 01-01-2015, 01:54 AM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you check the home directory to see that it was unpacked?
If not you may have to copy /etc/skel
 
Old 01-01-2015, 03:02 AM   #26
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
Have you check the home directory to see that it was unpacked?
If not you may have to copy /etc/skel
Thank you for coming EDDY1,

Actually when I did a re-installation; I formatted the 'home' partition too. There are no past users or profiles and configuration files there now.

To confirm, I opened as root the /etc/skel folder and checked the view hidden files. Here below is the screenshot of my 'skel' folder.

Click image for larger version

Name:	skel.png
Views:	11
Size:	8.0 KB
ID:	17247

Thank you & Regards

Anil
 
Old 01-02-2015, 04:18 AM   #27
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: LinuxMint 17 Qiana Cinnamon
Posts: 149

Original Poster
Rep: Reputation: 0
Hello everybody,

The problem I am trying to discuss here i.e. 'to customize my Login Screen' does not match the heading of this thread which I started actually to discuss the problem created while trying 'to customize my Login Screen'. So I think it would be wiser to start a new thread exclusively to discuss 'How to customize my Login Screen'. So I am starting a new thread here, regarding that.

Thank you everybody

Regards

Anil
 
  


Reply


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
Unable to login using root after changing root password using passwd command rodimail SUSE / openSUSE 3 12-27-2011 11:34 PM
[SOLVED] Modified "/etc/passwd", unable to login as root! tulsi Linux - General 8 12-28-2009 11:53 AM
Which accounts listed in the /etc/passwd file should have a login shell ? uncle-c Linux - Security 4 10-19-2009 07:31 PM
Editing of any file in /etc directory will disturb our root login? Karthi_India Linux - Newbie 2 07-14-2007 11:24 PM
Remote login and editing the file jayesha18 Linux - Networking 0 03-04-2006 07:21 AM


All times are GMT -5. The time now is 04:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration