Tiny Core Extensions > TCE Tips & Tricks
Creating a new $HOME environment --shadow-utils
(1/1)
jpeters:
With shadow-utils, it's very easy to create a safe working environment where you can't mess with tc files.
(present example uses the bash and shadow-utils extensions)
# In root create group, where <groupid> is your group name:
groupadd <groupid>.
# create user, where <userid> is your user name (you can use the same name as the group):
useradd -s /bin/bash -g <groupid> -d /path/home <userid>
# -s shell (I recommend using bash)
# -d setup a path to a home directory...it will create one if not already present.
sudo su - <userid>
# To add permissions, chown directories you want to use.
sudo chown <userid>:<groupid> /path
# To save beween boots, add to /opt/.filetool.lst:
etc/passwd
etc/group
# Also add your new home directory, if it's on the ramdisk.
# Tools for removing or modifying are in /usr/local/sbin
# examples:
userdel -r <userid>
usermod -d /newHome <userid>
Guy:
If I understand this correctly, when Tiny Core starts you are logged in as TC, and you use sudo su - <userid> to log in with your user name after Tiny Core is running. Is this correct?
Is there a simple way to set up Tiny Core so you log in using your user name each time Tiny Core starts?
curaga:
The bootcode user=username creates a new user named that, but he has the same rights as user tc.
Navigation
[0] Message Index
Go to full version