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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2012, 12:24 PM
|
#1
|
Member
Registered: Aug 2011
Location: /home
Posts: 96
Rep: 
|
how to create hidden account in centos
hi everybody,
iam using 32bit centos 6.2 on my machine, and i want to create hidden user 'test' , i mean to say while iam starting my centos at GUI mode, at that time that username 'test' should not appear at list of users, only i can use that username is command line. logging in through other username.
i have try this:
#useradd test
#passwd test
#passwd -l test
and i restart the system at that time username 'test' doen't appears but while iam trying to switch user test in command line such error occurs:
$su test
Password:
su: incorrect password
so i was not able to login. After that i know
passwd -l test = it locks the user 'test'
passwd -u test = it unlocks the user 'test'
can anybody guide me or suggest me how to create hidden account in my local machine, i'll be greatful and any kinds of ideas, suggestions and guidelines are welcome.
THANK YOU IN ADVANCE
|
|
|
04-25-2012, 08:48 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,828
|
If you are using the GDM, you can configure it not to show user names at start up.
Here's a suggestion from eHow. I have no way of testing it as I do not use a GUI login manager: http://www.ehow.com/how_12047088_mak...den-linux.html
|
|
1 members found this post helpful.
|
04-28-2012, 08:13 AM
|
#3
|
Member
Registered: Feb 2012
Distribution: CentOS
Posts: 69
Rep: 
|
Use Users and Groups (AKA User Manager) to create a user named test make sure to tick Specify user ID manually and choose a number below 500 but make sure that it has not been used by an other process/system user
IMO UserID 350 is a good choice
|
|
1 members found this post helpful.
|
04-28-2012, 06:25 PM
|
#4
|
Member
Registered: Aug 2011
Location: /home
Posts: 96
Original Poster
Rep: 
|
thank you,
frankbell and ulkoma for your reply. i have created a user 'fatty' giving uid 350 and it does not appears in login list. i can ssh using 'fatty' but when i try to halt, reboot or kill any process, such error occours.
[fatty@lalit ~]$ kill 2855
-bash: kill: (2855) - Operation not permitted
[fatty@lalit ~]$ reboot
reboot: Need to be root
[fatty@lalit ~]$ halt
halt: Need to be root
ani i guess and add user 'fatty' as a root group command.
#usermod -aG root fatty
[fatty@lalit ~]$ kill 2855
-bash: kill: (2855) - Operation not permitted
[fatty@lalit ~]$ reboot
reboot: Need to be root
[fatty@lalit ~]$ halt
halt: Need to be root
and try again, same error occours before i add fatty users in 'root' group. can anyone guide me, suggest me how to reboot,halt and kill the unwanted process of remote machine using hidden account. i'll be greatful. any kinds of ideas suggestions are welcome.
THANK YOU IN ADVANCE
Last edited by paruhang; 04-28-2012 at 06:34 PM.
|
|
|
04-28-2012, 06:27 PM
|
#5
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
You're trying to have a non-root user do things that only root can do. Adding a user to the root group does not make the user equivalent to root (and is probably a bad idea, to boot). If you know the root password, you can always use tyhe su command to switch to root. Otherwise, read up on sudo and set the user up in sudoers to be able to execute the commands you want with root privileges.
|
|
2 members found this post helpful.
|
All times are GMT -5. The time now is 11:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|