Re: how remove the guest acount ? [SOLVED]

Post here if you are a new Porteus member and you're looking for some help.
usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ? [SOLVED]

Post#1 by usernew » 07 Dec 2011, 16:29

HI, i want remove the guest acount.

why? , is easy ... when i try use modules and this modules contins files on root directory , the module no work on guest acount.

only in root acount can use modules whit root directory files , for example , kde *rc files.

for me guest acount is not good..need all time boot whit text mode to use extra modules.

i want remove guest acount ...not good for me ...i try only root acount in system,.

--------------------------------------------------
y try delete guest acount on passw , group and users files ,,and of course ...home guest directory , but the system every time want guest acount. :evil:

for me , at the moment the only solution are in files passw , group and users ,configure the guest acount whit same configuration of root acount.

its possible remove totally the guest acount ??


ty for this maravellous work ...and sorry for my very very bad english.

regards.

Posted after 11 minutes 22 seconds:
sorry no say what version..im try on 1.1-rc2 version.

but think ,all versions have this guest acount ?
Last edited by usernew on 09 Dec 2011, 10:45, edited 2 times in total.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: how remove the guest acount ?

Post#2 by Ahau » 07 Dec 2011, 16:33

Moved to "Newbie Questions" as the "Development" section is for feature requests and discussion regarding upcoming releases.

usernew,

Have you tried booting with the 'toroot' cheatcode? this will log you right into KDE or LXDE as the root user, totally bypassing the guest account.

From there, you can remove the remaining traces of the guest account if you wish with the steps you described above.

If this doesn't result in the behavior you desire, just let us know :)
Please take a look at our online documentation, here. Suggestions are welcome!

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ?

Post#3 by usernew » 07 Dec 2011, 16:50

ok , i think about try use toroot cheatcode on start-up menu options..and deleting guest acount parameters on the 3 files i say.

but guest acount are on system ..only skipped for cheat.

want totally remove , (is its possible).

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: how remove the guest acount ?

Post#4 by Ahau » 07 Dec 2011, 17:00

you could try:

'userdel -r guest'

That removed /home/guest, as well as the guest entries from /etc/passwd and /etc/group.

'man userdel' for more info.
Please take a look at our online documentation, here. Suggestions are welcome!

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ?

Post#5 by usernew » 07 Dec 2011, 17:59

ok i testing after.

but ..the guest folder are totally removed on all xzm modules ...and the files passw , group an users are modified..but when start a message say ... no guest acount on system..please try root acount...or similar message.

system every time want this acount..jejejej.


y try your new solutions after and say results.


thanks.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: how remove the guest acount ?

Post#6 by fanthom » 07 Dec 2011, 18:45

guest account has references spread on whole system (rc.M and even linuxrc) so will be tough to wipe it off completely.

if you dont want to use 'toroot' chetcode then i would modify (003)/etc/lxde/lxdm.conf and (004)/usr/share/config/kdm/kdmrc and change autologin from 'guest' to 'root' (that's what 'toroot' cheat does).
Please add [Solved] to your thread title if the solution was found.

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ?

Post#7 by usernew » 07 Dec 2011, 22:19

very thanks phantom , y try your solutions.

userdel -r guest = not a solution

system ...at startup ...message box says ..

Authenticating guest
Aythentication failed

and ofer login box , to start root acount.

now i try phantom instructions.

sorry my english is bad.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: how remove the guest acount ?

Post#8 by Ahau » 07 Dec 2011, 23:08

If you want to log in as root, you must use the toroot cheatcode every time you login, or the system will revert back to trying to log in as guest. You can edit your bootloader config file to include 'toroot', so that you don't have to type it in manually each time.

Other than that, you will need to manually edit and remaster the modules, as fanthom suggested. This would involve, extracting each module with xzm2dir, manually editing all files, and compressing them back into custom modules with xzm2dir. In addition to the two files fanthom mentioned, you would also need to edit (001)/etc/rc.d/rc.M to remove the section that handles the 'toroot' cheatcode, because rc.M directs the system to change the autologin from root back to guest if the 'toroot' cheatcode is not present. It seems much simpler to use the toroot cheatcode as designed.
Please take a look at our online documentation, here. Suggestions are welcome!

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ?

Post#9 by usernew » 07 Dec 2011, 23:37

OK ,IM HAPPY.

i fix , no guest acount , no toroot cheat need ...no fail messages around guesta count.

guest acount is totallu out of system..or i think this.

modified files

1-kdmrc line autologin=guest -------->>> autoligon=root
2-rc.M all lines whit guest instructions are deleted ...ejample s/autologin=guest/Autologin=root changed for ...only root line s/autologin=root ...
3-group file -...delete the last line (guest acount)
4-shadow delete the last line (guest acount)
5-passw file..deleting las line (guest acount)


this changes fix guest acount for me. ..no more never more guest acount on system..or i think that,.

userdel -r guest ---->> say no guest acount on system
when start system whit telinit 4 ...user is root ...i try open other instance of system ..and only root option in menu ...

i think is fixed.


here xzm module ...for any one want remove guest acount.

very important , delete home/guest folder. and add this.

http://www.multiupload.com/

is the link violate your forum rules , sorry and delete.


thnx for all , very nice team here.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: how remove the guest acount ?

Post#10 by wread » 08 Dec 2011, 12:22

@ usernew
You should now add [SOLVED] to your post!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: how remove the guest acount ?

Post#11 by brokenman » 08 Dec 2011, 12:23

Thanks. When i saw this thread i new removing guest would be a big job. Fanthom went to great lengths to login guest by default after a vote. It's code is spread throughout many files. I would like to download your module but you linked to the front page of multiupload and not the file you uploaded. Please fix.
How do i become super user?
Wear your underpants on the outside and put on a cape.

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ? (solved)

Post#12 by usernew » 09 Dec 2011, 10:43


User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: how remove the guest acount ? [SOLVED]

Post#13 by brokenman » 09 Dec 2011, 12:43

Thanks. Got it now.
How do i become super user?
Wear your underpants on the outside and put on a cape.

usernew
White ninja
White ninja
Posts: 28
Joined: 07 Dec 2011, 16:06
Location: spain

Re: how remove the guest acount ? [SOLVED]

Post#14 by usernew » 10 Dec 2011, 21:07

the module works for you ?

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: how remove the guest acount ? [SOLVED]

Post#15 by brokenman » 12 Dec 2011, 15:15

Havn't tested it as yet, just grabbed it for later ... i am a little busy finishing another project and i use guest account. Will test once i have completed the project. Thanks.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply