WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: change user tc to another name and pswd protected login to the box  (Read 3772 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: change user tc to another name and pswd protected login to the box
« Reply #1 on: November 03, 2015, 06:12:34 AM »
Please read the FAQ. noautologin and user=
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: change user tc to another name and pswd protected login to the box
« Reply #2 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
Download a copy and keep it handy: Core book ;)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: change user tc to another name and pswd protected login to the box
« Reply #3 on: November 03, 2015, 07:54:11 AM »
Please read the FAQ. noautologin and user=

I've overseen the noautologin option. Thanks a lot!

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: change user tc to another name and pswd protected login to the box
« Reply #4 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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: change user tc to another name and pswd protected login to the box
« Reply #5 on: November 03, 2015, 08:53:23 AM »
That will leave the home directory and files of the new user with the wrong ownership.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: change user tc to another name and pswd protected login to the box
« Reply #6 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