Page 1 of 1

Is it safe to rename Guest and create another Guest?

Posted: 01 Jul 2015, 14:16
by jimwg
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

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

Posted: 01 Jul 2015, 16:46
by donald
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.

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

Posted: 01 Jul 2015, 18:18
by francois
Conclusion. Change the guest password. :twisted:

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

Posted: 01 Jul 2015, 18:43
by Seva
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

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

Posted: 02 Jul 2015, 03:43
by jimwg
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

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

Posted: 03 Jul 2015, 07:25
by Seva
me personally fine with 2 hardcoded users, its easier this way

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

Posted: 04 Jul 2015, 08:14
by Seva
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

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

Posted: 05 Jul 2015, 17:25
by tome
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.

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

Posted: 06 Jul 2015, 22:24
by Bogomips
Naive question comes to mind, which is what it would entail to make sub-users of guest, out of curiosity. :roll:

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

Posted: 08 Jul 2015, 09:03
by jimwg
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

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

Posted: 12 Jul 2015, 09:26
by jimwg
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

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

Posted: 12 Jul 2015, 10:47
by tome
Login as root and move needed files from guest somewhere else.

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

Posted: 15 Jul 2015, 10:56
by TTW
One of the attractions (compared to my current Puppy installation) is that Porteus supports user account not an automatic login in to root with no other option. What I am not clear on though is does it limit only to Root and Guest? Or can you set up other family users?

Not a deal breaker as ultimately you can give each family user their own USB - but then that becomes a headache of maintenance for me - the onsite helpdesk. :)

TTW

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

Posted: 15 Jul 2015, 18:04
by francois
In the above interventions, have you read and tried tome's strategy to create additional users? :wink: