I have created the user 'mastersa' in several servers.
I need to change the user ID to '0'. However, after doing this, I am not able to login (Access denied).
Even after I change the password, I still get this error.
Why is this?
Also, when I attempt to delete the user account, I get the error :
Whereas, the user is not even logged on anymore, as I logged the user out already :
The user group zero is reserved for privileged accounts, namely root. And you have to be root to use the userdel command. That is the direct cause of the error, I think.
I'm not sure how to fix your problem. When you need special privileges for a user there are special tools like sudoer (sudo), which allows you to give good control over what the user can and cannot do. Do not fiddle around with reserved group numbers like that.
There is UID 0 for root.
By adding a second UID 0 user you make it an alias for root.
Still it logs in with its separate password.
I don't know why the login fails. Look at error messages in /var/adm/syslog/syslog.log
How do you login? With ssh? Then, perhaps there is "PermitRootLogin no" in sshd_config, and sshd treats all UID 0 users accordingly.
Once logged in as the alias user, a "whoami" will say "root". Some odd things can happen.
So userdel fails because it sees that "root" has running processes.
Adding a second UID 0 account is no good practice.
A better way is sudo and an appropriate entry in sudoers file.
I'm afraid the poster doesn't talk of group 0 but of UID 0 i.e. the root user! A bad idea ... can you post the relevant parts of the /etc/passwd file, confidential data obfuscated?
Was your idea because root can not log in in the first place? If so you discovered it is true for any account with UID 0... and so the is no error, just the normal behaviour of HP-UX...
2 possibles reasons : security mainly :
Not allow ssh with root account ( as mentionned ) - OR -
the presence of securetty file that allows root most commonly from a console...
That said you could have tried to su...
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Recently, I setup a dual boot on this PC. I can currently jump from Ubuntu 12.04 and 16.04. What I would like to be able to do is access the home directory of my 16.04 OS from within the 12.04, is that possible? I can mount the partition of the hard drive where 16.04 lives from within 12.04 but it... (4 Replies)
Hello,
I have a large file of syllables /strings in Urdu. Each word is on a separate line.
Example in English:
be
at
for
if
being
attract
I need to identify the frequency of each of these strings from a large corpus (which I cannot attach unfortunately because of size limitations) and... (7 Replies)
Hi everybody,
Currently, I have a script which access a remote computer via SSH, go to a folder already defined in the code and then executes a program in it, just like that:
ssh user@host << EOI
cd path
./file
EOI
It executes fine, but now I want to pass an argument in the command... (2 Replies)
I have just loaded Sabayon KDE4.2. I have a 64bit comp and have tried several Linux/Unix os and have had problems with all of them and now it seems this one as well. I can't load my printer up and I cannot access any login management. I have had trouble accessing my Login Manager. I have looked... (3 Replies)
Has anyone run into issues creating a mksysb_resource via NIM?
We get the following messages
0042-001 nim: processing error encountered on "master":
0042-006 m_mkbosi: (From_Master) connect A remote host refused an
attempted connect operation.
This happens on the LPARs on the same... (4 Replies)
Hi all,
I am a newbe to aix 5.2. I want to specify the characters used by users while creating user in aix like specifying the length of the password
should i use some sript for that if it is then please let me know how to do this
if yes give me the link for the scripts.
Thanks in advance
... (2 Replies)
Hi,
In my company, we are using SCO UNIX system and Informix database. Recently, there have been a lot of users accessing to server and sometimes it has made server run very slow. So, I intend to limit number of users of 30 only. Although I have tried to search on the Internet for several days,... (1 Reply)
I've got SUSE 9 installed on a removable hard drive and the system is up and running fine.
I'm trying to copy stuff off a CD onto one of my Linux partitions but I am getting an errors :
* Could not read /media/cdrom/file1.tar.tar
I can browse to the file location on the CD by using the... (11 Replies)