LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-25-2012, 12:24 PM   #1
paruhang
Member
 
Registered: Aug 2011
Location: /home
Posts: 96

Rep: Reputation: Disabled
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
 
Old 04-25-2012, 08:48 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.
Old 04-28-2012, 08:13 AM   #3
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Rep: Reputation: Disabled
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.
Old 04-28-2012, 06:25 PM   #4
paruhang
Member
 
Registered: Aug 2011
Location: /home
Posts: 96

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-28-2012, 06:27 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
  


Reply



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
How to create ntfs hidden partitions under truecrypt? wearetheborg Linux - Software 1 01-17-2012 01:46 PM
create windows hidden file from linux using c++ Lobinho Programming 2 10-19-2010 05:28 AM
create tarball with hidden files/folders phsythax Linux - Software 2 06-27-2008 09:01 AM
cannot create new user account kpachopoulos Linux - Newbie 4 08-17-2004 07:38 AM
How can I create a link to a folder that shows hidden files? Mubli Linux - Newbie 2 06-04-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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