Is it safe to rename Guest and create another Guest?

Post here if you are a new Porteus member and you're looking for some help.
jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Is it safe to rename Guest and create another Guest?

Post#1 by jimwg » 01 Jul 2015, 14:16

Greetings!

Many YouTube reviews on Porteus stress on getting a main user account outside default Root to avoid unrecoverable mistakes and accidents so I've been doing that on several flash drive here via the Guest account. Only thing is now it's far more "me" than guest now so I'd like to rename that account appropriately and also create another "replacement" Guest account just to stay in keeping with Porteus out-of-the-box. My question is, can I safely rename my guest account with my name and create another guest just to have that account available for whatever future reasons?

Thanks for any educating tips!

Jim in NYC

donald
Full of knowledge
Full of knowledge
Posts: 1123
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Is it safe to rename Guest and create another Guest?

Post#2 by donald » 01 Jul 2015, 16:46

Hi jim
some quotes

fanthom
... although guest and root are hardcoded in porteus settings
so i would recommend to stick to one of them.

brokenman
Furthermore, some scripts are hard coded to look for only these two users.
--------------------------------------------------------------------------------------------------------------

It seems (to me) that you may get more problems than you want to.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Is it safe to rename Guest and create another Guest?

Post#3 by francois » 01 Jul 2015, 18:18

Conclusion. Change the guest password. :twisted:
Voltaire: Le mieux est l'ennemi du bien.

Seva
Samurai
Samurai
Posts: 134
Joined: 30 Apr 2015, 12:00
Distribution: XFCE Porteus Desktop 3.1 64bit
Location: Moscow, Russia

Re: Is it safe to rename Guest and create another Guest?

Post#4 by Seva » 01 Jul 2015, 18:43

i think its not just porteus, its a general linux practice to not use root by default
guest for use
root for maintenance
if 2-3 people use the pc then they can all use one guest account, no need to create separate users
posted from Porteus

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Is it safe to rename Guest and create another Guest?

Post#5 by jimwg » 02 Jul 2015, 03:43

Greetings!

As per a Mint maven I used "gentent passwd" to list and check names logged on this (experimental) flash in the listing below. In learning Porteus and Linux, my tinkering created new user accounts via addusers, but the jimwg one doesn't log-in or work as though it has no home like the other accounts:

jimwg:x:1001:100:jimwg,,,:/home/jimwg:/bin/bash

Mint mavens say that jimwg here is actually "illegal" and a "dangerous" listing error and could corrupt the whole "users array". (This was the name I intended to replace Guest with before you all convinced me otherwise but I'll just stick between guest and root,) still I'd like to learn how to recover from major faults. I told the mavens that Porteus works different with a main root user and they suggested taking this to you all before I start deleting any accounts. This is an educational experience so I appreciate your input!

Jim in NYC

--------------------------------------
VIA "GENTENT":

root@porteus:~# cat /etc/passwd
root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
adm:x:3:4:adm:/var/log:/bin/false
lp:x:4:7:lp:/var/spool/lpd:/bin/false
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/:/bin/false
news:x:9:13:news:/usr/lib/news:/bin/false
uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false
operator:x:11:0:operator:/root:/bin/bash
games:x:12:100:games:/usr/games:/bin/false
ftp:x:14:50::/home/ftp:/bin/false
smmsp:x:25:25:smmsp:/var/spool/clientmqueue:/bin/false
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/false
rpc:x:32:32:RPC portmap user:/:/bin/false
sshd:x:33:33:sshd:/:/bin/false
gdm:x:42:42:GDM:/var/state/gdm:/bin/bash
oprofile:x:51:51:oprofile:/:/bin/false
apache:x:80:80:User for Apache:/srv/httpd:/bin/false
messagebus:x:81:81:User for D-BUS:/var/run/dbus:/bin/false
haldaemon:x:82:82:User for HAL:/var/run/hald:/bin/false
pop:x:90:90:POP:/:/bin/false
vboxadd:x:95:95::/home/vboxadd:/bin/bash
nobody:x:99:99:nobody:/:/bin/false
kdm:x:102:102::/home/kdm:/bin/bash
avahi:x:214:214:Avahi:/dev/null:/bin/false
guest:x:1000:1000::/home/guest:/bin/bash
jimwg:x:1001:100:jimwg,,,:/home/jimwg:/bin/bash
amber:x:1002:100:,,,:/home/amber:/bin/bash
tiffany:x:1003:100:,,,:/home/tiffany:/bin/bash
root@porteus:~# cat /etc/passwd/
cat: /etc/passwd/: Not a directory

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Is it safe to rename Guest and create another Guest?

Post#6 by phhpro » 03 Jul 2015, 03:24

...
Last edited by phhpro on 04 Feb 2016, 03:02, edited 1 time in total.

Seva
Samurai
Samurai
Posts: 134
Joined: 30 Apr 2015, 12:00
Distribution: XFCE Porteus Desktop 3.1 64bit
Location: Moscow, Russia

Re: Is it safe to rename Guest and create another Guest?

Post#7 by Seva » 03 Jul 2015, 07:25

me personally fine with 2 hardcoded users, its easier this way
posted from Porteus

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Is it safe to rename Guest and create another Guest?

Post#8 by phhpro » 03 Jul 2015, 22:42

...
Last edited by phhpro on 04 Feb 2016, 03:03, edited 1 time in total.

Seva
Samurai
Samurai
Posts: 134
Joined: 30 Apr 2015, 12:00
Distribution: XFCE Porteus Desktop 3.1 64bit
Location: Moscow, Russia

Re: Is it safe to rename Guest and create another Guest?

Post#9 by Seva » 04 Jul 2015, 08:14

no, i dont like to use root by default, it would give me creeps too
maybe i will give Puppy linux or one of its flavors a shot
switching an os is a lot of a hassle for me, im not geeky enough for all this
posted from Porteus

tome
Contributor
Contributor
Posts: 561
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Is it safe to rename Guest and create another Guest?

Post#10 by tome » 05 Jul 2015, 17:25

Is it safe to rename Guest and create another Guest?
It should be safe but these steps (+thinking) are required:

1. login as root
2. open terminal and execute:
3. adduser jimwg (use default values)
4. mv /home/guest/{*,.*} /home/jimwg
5. chown -R jimwg /home/jimwg
6. cp -a /mnt/live/memory/images/0*/home/guest/. /home/guest
7. login as guest (fresh account)

/home/jimwg (adduser) could be changed. Now you can login as guest or jimwg (no password).
Not enough tested so test it before use.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Is it safe to rename Guest and create another Guest?

Post#11 by phhpro » 06 Jul 2015, 20:05

...
Last edited by phhpro on 04 Feb 2016, 03:04, edited 1 time in total.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Is it safe to rename Guest and create another Guest?

Post#12 by Bogomips » 06 Jul 2015, 22:24

Naive question comes to mind, which is what it would entail to make sub-users of guest, out of curiosity. :roll:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Is it safe to rename Guest and create another Guest?

Post#13 by jimwg » 08 Jul 2015, 09:03

Bogomips wrote:Naive question comes to mind, which is what it would entail to make sub-users of guest, out of curiosity. :roll:
In this case, like climbing Everest, I guess! :)

Good reply! Thanks!

Jim In NYC

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Is it safe to rename Guest and create another Guest?

Post#14 by jimwg » 12 Jul 2015, 09:26

Help.

I changed the guest password from guest to avalon and now the system won't log into guest at all, even using boot-up script menu. I just keep being retuned to the dark blue LOGIN screen. I've since changed the guest pw several times but no cigar. Am I locked out for good?

Jm in NYC

tome
Contributor
Contributor
Posts: 561
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Is it safe to rename Guest and create another Guest?

Post#15 by tome » 12 Jul 2015, 10:47

Login as root and move needed files from guest somewhere else.

Post Reply