Page 1 of 1

How to set up a new user on v2.0 - 64k

Posted: 20 Feb 2013, 14:10
by smoris
Hello,

New user on Porteus - very happy with KDE/Plasma desktop and WiFi and VPN support under the 2.0 64k release.

Quick question: as the subject title says I would like to now how to set up a new user.

Thanks

Smoris

Re: How to set up a new user on v2.0 - 64k

Posted: 20 Feb 2013, 16:59
by fanthom
root and guest accounts are hardcoded in some of our scripts/tools so it's the best to just change guest's password instead of creating completely new profile.

please open terminal -> run 'passwd' command -> set new password -> switch to root with 'su' (password is 'toor') -> run:

Code: Select all

mkdir -p /tmp/passwd
cp -a  --parents /etc/shadow /tmp/passwd
dir2xzm /tmp/passwd /home/guest/Desktop/passwd.xzm
then move passwd.xzm to /porteus/modules folder on your booting media.

Re: How to set up a new user on v2.0 - 64k [SOLVED]

Posted: 21 Feb 2013, 08:56
by smoris
got it - thanks.

Re: How to set up a new user on v2.0 - 64k

Posted: 26 Feb 2013, 16:45
by wildmanjohn
Hi Everyone,
I just tried this and could not move the file or used incorrect syntax. Please keep in mind, I'm new to cli use and commands. I have a book "Linux" pocket guide for my reference to linux commands. My os is installed to my HD on Dell 1545, 4gb ram, 80gb hd, v2.0 - 64. Here is a copy of my cli inputs:

root@porteus:~# find / -type f -name passwd.xzm -l
find: unknown predicate `-l'
root@porteus:~# find / -type f -name passwd.xzm
/home/guest/Desktop/passwd.xzm
/mnt/live/memory/changes/home/guest/Desktop/passwd.xzm
/mnt/sda1/porteus/changes/home/guest/Desktop/passwd.xzm
root@porteus:~# mv /mnt/sda1/porteus/changes/home/guest/Desktop/passwd.xzm /porteus/modules
mv: cannot move ‘/mnt/sda1/porteus/changes/home/guest/Desktop/passwd.xzm’ to ‘/porteus/modules’: No such file or directory
root@porteus:~#

Any suggestions?
John

fanthom wrote:root and guest accounts are hardcoded in some of our scripts/tools so it's the best to just change guest's password instead of creating completely new profile.

please open terminal -> run 'passwd' command -> set new password -> switch to root with 'su' (password is 'toor') -> run:

Code: Select all

mkdir -p /tmp/passwd
cp -a  --parents /etc/shadow /tmp/passwd
dir2xzm /tmp/passwd /home/guest/Desktop/passwd.xzm
then move passwd.xzm to /porteus/modules folder on your booting media.

Re: How to set up a new user on v2.0 - 64k

Posted: 26 Feb 2013, 17:04
by Hamza
/porteus/modules is a relative path.

You should copy/move this module to /mnt/sdXY/porteus/modules. If you don't know what's the path, please run this command in order to get it.

Code: Select all

grep -A1 "ata found in" /mnt/live/var/log/livedbg | tail -n1 | sed 's#//#/#g'
This should show a path like /mnt/sda1/porteus, with this path you have to add '/modules' to point modules folder.

At end, you have /mnt/sda1/porteus/modules.

Cheers!