LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2014, 07:45 PM   #1
Banquo
Member
 
Registered: May 2012
Distribution: Peppermint OS
Posts: 65

Rep: Reputation: Disabled
How do I hide users named "Comment" from the login screen?


After much messing about with samba, I seem to have many additional "users" added to the login list, Most are named "Comment" but one is named "Samba Guest Account"

I am using the samba gtk gui for configuring and wanted to add my linux account and my Win 7 accounts. Now I have 8 users on my linux box! How do I disable or hide them?

Last edited by Banquo; 03-06-2014 at 07:46 PM. Reason: Typo
 
Old 03-13-2014, 09:59 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
As you haven't mentioned your distro, i am guessing it should be ubuntu 11.10+ because it is mentioned in your profile.

Users whose userid is less than 1000 do not list in the login screen. To change the userid of the user.
# sudo usermod -u 999 user-name

If it does not work for you, follow this solution.

Open file /etc/lightdm/users.conf and add your users in the line
Code:
hidden-users=nobody nobody4 noaccess
Suppose your usernames are john david and louie, add this in the line
Code:
hidden-users=nobody nobody4 noaccess john david louie
Now restart lightdm, your users should not be disappeared on the login screen.
 
Old 03-14-2014, 04:27 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Slight but important note on your comment, eklavya: while you can use usermod as shown to change the numeric-userid of any user, there are two things that you must also consider:
  1. The numeric userids should be unique. In your example, you change it to 999. You should change users according to some consistent-to-you pattern, but do not allow two users to share the same id ... and, of course, never let any of those numbers be 0.
  2. Changing the numeric userid of a user will not affect any user sessions that are already logged on.
  3. The home-directory of the user, and any files including hidden files in that directory and its subdirectories, must be chowned to be owned by the new numeric-id, because it is this number that actually drives the permissions system. I do not believe that usermod will change this. You can lock a user out of his own home.
 
  


Reply

Tags
comment, login, samba, users



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have "forum" or at least "comment box" at website? linus72 Linux - Newbie 12 05-01-2009 01:38 PM
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 03:18 PM
"cant login, login incorrect"init : Id "x" respawning too fast:disabled for 5 minutes allenwoxx Linux - Newbie 1 11-21-2008 10:45 AM
users created by "useradd" cannot remotely login with PuTTY. Why? Kreshna Linux - Software 4 10-16-2006 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:07 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