FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I upgraded from F21 to F25 ,in Installation I did not format the /home directory and left it intact, I set the passwd for one user during setup and install, but I did not set a passwd for a second user that was named "guest" and now that I'm in F25 , how do I assign a passwd for /home/guest ?
There is no settings in /etc/passwd for /home/guest.
I went into the Users Gui and tried to assign a passwd for guest but it won't let me do that unless I delete /home/guest and I don't want to do that, there is pictures in /home/guest
I upgraded from F21 to F25 ,in Installation I did not format the /home directory and left it intact, I set the passwd for one user during setup and install, but I did not set a passwd for a second user that was named "guest" and now that I'm in F25 , how do I assign a passwd for /home/guest ?
There is no settings in /etc/passwd for /home/guest.
I went into the Users Gui and tried to assign a passwd for guest but it won't let me do that unless I delete /home/guest and I don't want to do that, there is pictures in /home/guest
I suggest that you rename /home/guest to /home/guest.old. Then go into the GUI and created user guest. Then copy whatever you need from /home/guest.old to /home/guest. If necessary then use the chown command to straighten out the ownership of files in /home/guest.
Not sure about the exact details of your "no user guest account created" situation, but
Did you try the # useradd -o switch? Unix works by uid/gid NUMBERS, irrespective of /etc/passwd "name mappings" (the kernel itself CAN function withOUT /etc/passwd!!!)
# cd /home; mv guest xxzxx; ls -l; df xxzxx; du -s xxzxx
(the df/du are just "sanity checks", to verify what's what)
Add guest user with *SAME* uid&gid numbers as xxzxx (in ls -l; also see ls -n switch)
Check (edit: vi -r ? vipw? naw: grep, more or less) /etc/{passwd,shadow,group}
Then, in /home, mv guest xxjunk; mv xxzxx guest; du -s guest
I -think- this will work, unless SELinux issues(?).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.