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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
smoris
Ronin
Ronin
Posts: 2
Joined: 20 Feb 2013, 12:34
Distribution: Porteus 2.0 64k
Location: UK

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

Post#1 by smoris » 20 Feb 2013, 14:10

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 4565
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

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

Post#2 by fanthom » 20 Feb 2013, 16:59

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.
Please add [Solved] to your thread title if the solution was found.

smoris
Ronin
Ronin
Posts: 2
Joined: 20 Feb 2013, 12:34
Distribution: Porteus 2.0 64k
Location: UK

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

Post#3 by smoris » 21 Feb 2013, 08:56

got it - thanks.

wildmanjohn
Ronin
Ronin
Posts: 1
Joined: 26 Feb 2013, 15:47
Distribution: Porteus V2.0-x86_64
Location: Niceville, FL, USA

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

Post#4 by wildmanjohn » 26 Feb 2013, 16:45

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.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

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

Post#5 by Hamza » 26 Feb 2013, 17:04

/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!
NjVFQzY2Rg==

Post Reply