Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: loppanjo on April 08, 2016, 10:38:13 AM

Title: Questions about 'Users and Root'
Post by: loppanjo on April 08, 2016, 10:38:13 AM
Hello there.
A few questions about the users already on the system.
-WHY do TinyCore doesn't want u to use 'Root'?
-Why isn't it possible to change 'Root's password and login as 'Root'?
-What are the other users for? I know I use 'tc' to login but the other two ('lp', 'nobody').
-Can I remove the other users ('lp', 'nobody') without messing anything up?

This may be the shittiest english ever, sry for that ;)
Title: Re: Questions about 'Users and Root'
Post by: gerald_clark on April 08, 2016, 11:01:05 AM
You should not login as root.  If you need to run a program that requires root access, use sudo.
In order to login as root you will need to use the noautologin boot code.  The .profile will switch to user tc though.
You can use the passwd command to change the password, but to make it persistent you need to add etc/shadow to the /opt/.filetool.lst file and do a backup.

You should not be removing users from /etc/passwd.  They are there to define access rights for system daemons.
Please read the book at http://tinycorelinux.net/book.html
You may also want to read http://rute.2038bug.com/index.html.gz
Title: Re: Questions about 'Users and Root'
Post by: loppanjo on April 08, 2016, 01:00:42 PM
But couldn't someone else use these other users to login to my system?

And is it possible to create a new user and remove the user 'TC'?
Title: Re: Questions about 'Users and Root'
Post by: gerald_clark on April 08, 2016, 01:19:05 PM
1. No.
2. Not recommended.

Please learn how Tiny Core works before attempting changes.
Title: Re: Questions about 'Users and Root'
Post by: jgrulich on April 08, 2016, 03:42:15 PM
As stated, the "lp" and "nobody" are only system definitions, not regular users.
The only user is "tc",which is "admin" user with root rights option via "sudo".
For regular use, change the password for "tc" to something high secure and use this account only for "admin" purposes.
Than create another user with only "staff" access to use as a "user" and use it for daily work.
Title: Re: Questions about 'Users and Root'
Post by: bmarkus on April 08, 2016, 04:21:43 PM
If you change/assign pasword for tc, configure and backup to make it persistent.

But I kindly advice to leave as it is, learn TC and later review the subject.