From: Gfp <[email protected]> To: "W. Knight" <[email protected]> Cc: Guix Help <[email protected]> Subject: Re: can´t log into my second user Date: Mon, 23 Feb 2026 14:28:45 +0100 Message-ID: <[email protected]> X-Draft-From: ("nnimap+posteo:gfp@posteo_at.Guix help mailing list" 4865) --text follows this line--
"W. Knight" <[email protected]> writes: > On February 21, 2026 11:07:21 AM CST, gfp <[email protected]> wrote: >>Am 20.02.26 um 17:03 schrieb W. Knight: > ...>>> 1) Verify that the issue is with the graphical login manager (gdm) logging into the account and not login in general.
>>> Since 'sudo su -l gast' worked the only thing not checked >>> outside of gdm is the password. If as user gfp you run 'su -l >>> gast' and use the gast password when prompted it should log you >>> in. If it works then the problem is with gdm if it doesn't then >>> you would need to check /etc/ secure again. >>yes it worked, I logged in with the password of "gast. >>so the problem is with gdm. >> >>> 2) If #1 worked then the issue is probably a file in the user home >>> directory which either has the wrong ownership, permissions, or >>> contents but the easy fix is to move the directory and let it be >>> created fresh. >>> As user gfp >>> cd /home # Move to home directory >>> sudo mv gast gast.broken.20260220 # Move it out of the way >> >>I did that >> >>> su - gast # Most linux system create home directory on first login >> >>gast@Tuxedo /home$ su - gast >>Password: >>Could not change in the directory /home/gast.>>German: Es konnte nicht in das Verzeichnis »/home/gast« gewechselt werden.
>> >>> pwd; ls -al # make sure you are in /home/gast >>> exit >> >>I was in the gast/home >>so I tried >> >>gast@Tuxedo /home$ pwd; ls -al >>/home >>insgesamt 40 >>drwxr-xr-x 4 root root 4096 21. Feb 17:47 ./ >>drwxr-xr-x 19 root root 4096 21. Feb 17:03 ../ >>drwx------ 14 gast users 4096 20. Feb 11:12 gast.broken.20260220/ >>drwx-----x 63 gfp users 20480 21. Feb 17:23 gfp/ >> >>It means it didn´t create /home >>even though I was in: >>gast@Tuxedo /home earlier. > > Agreed it appears that guix creates it (probably during the > reconfigure). That make sense since guix needs to create the profile > links that would be hard to with the "traditional" way of copying the > /etc/skel directory to the home directory used by the firstlogin > script. The question is if reconfigure always does it or if it only > does it when it adds a new user into the passwd, shadow, and group > files. (note to self) see how guix handles the removal of a user from > config.scm. Does it delete the home directory, remove the user from > passwd etc? > Fortunately during system reconfigure it created /home After restarting I was able to log into user „gast“ So I can use this user. > > >>By the way >>how can I in the terminal if I open a file with nano,>>I don´t know what else I can use, have you got proposals, because in this account is almost nothing installed?
>>and want to copy something from nano, >>but the lines are so long that the whole lines are not copied. >>I tried several times, but it didn´t work out. >>How can I then save something, when I can´t use the GUI in this user >>only the terminal? >> Caveat: I am very old school so there may be better ways now but this is what I use. I don't really use nano so I can't comment on how it works.
> > commandline text viewing options > -------------------------------------------> 'cat FILENAME': dumps the entire file to screen. Works anywhere. If it is short enough or your terminal buffer is long enough it is usually enough. > 'cat FILENAME | less' or 'less FILENAME' : Allows using arrow keys to scroll forward and back and to search for strings with '/'. Works aslong as your terminal is smart enough and configured correctly (almost all systems any more). If you are looking at and copying from log files on remote systems or anytime you don't have a gui this is the one I recommend. I use the first format due to muscle memory and the fact I am used to piping command output into 'less' (and its predecesor 'more') to be able to read. > 'tail -f FILENAME' : Show the last few lines of a file and any lines added after the command started. Use <ctrl>-<c> to exit. Useful for monitoring changes to a logfile while you run commands in another window.
> > editing files from the command line> Any commandline editor will require learning some amount of esoteric key presses. So which you use depends on what you have available and how much you can control.
> ------------------------------------------> 'vi FILENAME': If you are going to be accessing or administrating linux systems you do not control and in particular servers that may not have gui tools then I would recommend basic familiartization with vi/vim. Except for one system I used where the person who controlled it hated vi intentionally uninstalling it, it should be available everywhere and works as long as the terminal supports curses.
> Minimal commands. > '<esc>' to get out of insert, append, commandline mode > ':' - commandline mode (takes commands from the ed/ex editors)> ':q', ':w', ':wq', and 'q!'- quit the editor, write changes, write and quit, quit without saving. > 'i', 'a': insert or append the following text at the current cursor location.
>> 'emacs FILENAME' : Not installed by default on a lot of systems but if you control the system then I would recommend installing and learning. In particular it appears to be heavily used by the guix and guile communities. There are usually packages that provide only the terminal version or the gui and terminal version.
> Minimal commands > '<ctrl>-<x> <ctrl>-<s>' save changes to buffer > '<ctrl>-<x> <ctrl>-<c>' close buffer >> I used to list ed/ex here when people asked similar questions for the cases where the terminal did not support curses but I have not run into that in a long time.
> > Cheers, > W thanks for the exact explanation. very good! for me its not important if: „I am very old school...“ sometimes old schools are better... people are different in their likes I can give „cat“ and „less“ a try. I did know about it, but never used it. Gottfried
OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
