Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: emninger on November 03, 2015, 05:28:47 AM

Title: change user tc to another name and pswd protected login to the box
Post by: emninger on November 03, 2015, 05:28:47 AM
Is it possible to change the user "tc" to another name?

And how can i pswd protect the access to the box? Actually the bootprocess automatically brings me to /home/tc/ without any protection (by sudo su i even can become root without any pswd protection - which is odd IMHO).

(When i do su i'm asked for the pswd ... (1)

-----
(1) Regard passwords: For me the secure option in extlinux.conf did not work. It was like the asked pswds were not stored. So i got pswds in this way: For root, i became root by "sudo su" > 'passwd'  The same procedure for user "tc" ;  this passwords obviously are stored and work. I checked it by going to the console and typing in login, either for root or for tc.
Title: Re: change user tc to another name and pswd protected login to the box
Post by: curaga on November 03, 2015, 06:12:34 AM
Please read the FAQ. noautologin and user=
Title: Re: change user tc to another name and pswd protected login to the box
Post by: Misalf on November 03, 2015, 06:17:52 AM
Never tried this but I'd start by copying  /home/tc  to  /home/my-user , run  backup , reboot, and then specifying the alternate user account via boot code  user=my-user.

You might want to have a look at the  protect  boot code to encrypt your backup file.
http://wiki.tinycorelinux.net/wiki:boot_options#tinycore_specific_boot_options
Title: Re: change user tc to another name and pswd protected login to the box
Post by: emninger on November 03, 2015, 07:54:11 AM
Please read the FAQ. noautologin and user=

I've overseen the noautologin option. Thanks a lot!
Title: Re: change user tc to another name and pswd protected login to the box
Post by: emninger on November 03, 2015, 07:55:26 AM
Never tried this but I'd start by copying  /home/tc  to  /home/my-user , run  backup , reboot, and then specifying the alternate user account via boot code  user=my-user.

You might want to have a look at the  protect  boot code to encrypt your backup file.
http://wiki.tinycorelinux.net/wiki:boot_options#tinycore_specific_boot_options

But a simple rename does not exist, does it?
Title: Re: change user tc to another name and pswd protected login to the box
Post by: gerald_clark on November 03, 2015, 08:53:23 AM
That will leave the home directory and files of the new user with the wrong ownership.
Title: Re: change user tc to another name and pswd protected login to the box
Post by: emninger on November 03, 2015, 09:03:28 AM
That will leave the home directory and files of the new user with the wrong ownership.

Yes. Thanks for the pointer ... :D