Hi,
Why the default user is not created in the CentOS-7.
while executing this command
login -a -s user_u -r s0 __default__ in CentOS-7 throwing the below error.
ValueError: Linux User __default__ does not exist.
Is there any way to overcome this issue?
Why Default user is not created in CentOS7
Re: Why Default user is not created in CentOS7
There are no "default" user accounts in CentOS apart from the root user. You will need to create the user accounts you need. I also wonder about the parameters of your login command, they are not from CentOS 7.
What are you really trying to do?
Code: Select all
$ login -a
login: invalid option -- 'a'
usage: login [ -p ] [ -h host ] [ -H ] [ -f username | username ]
Re: Why Default user is not created in CentOS7
Hello,
There are no default users except the ones created and managed by the packages you install. You can, beside your root password, create a 'default' user in the CentOS 7 installation process if you meant this.
There are no default users except the ones created and managed by the packages you install. You can, beside your root password, create a 'default' user in the CentOS 7 installation process if you meant this.
Best regards,
Tyrion
Tyrion
Re: Why Default user is not created in CentOS7
I was trying to change default user domain from unconfined_t to system_t.avij wrote:There are no "default" user accounts in CentOS apart from the root user. You will need to create the user accounts you need. I also wonder about the parameters of your login command, they are not from CentOS 7.What are you really trying to do?Code: Select all
$ login -a login: invalid option -- 'a' usage: login [ -p ] [ -h host ] [ -H ] [ -f username | username ]
Re: Why Default user is not created in CentOS7
Ok, so you are using semanage login. That clarifies the situation a bit. Sorry, I don't know the answer to your question, but perhaps others can help. Also see man default_contexts if there's anything useful in there.
Re: Why Default user is not created in CentOS7
What's the output from semanage login -l ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke