You are not logged in.
Pages: 1
In my home folder .local .cache and .config are owned by root and every user I make have this three folders owned by root.Is that ok?
I make users with command
# useradd -m -s /bin/bash johndoe
#gpasswd -a johndoe audio
#gpasswd -a johndoe optical
#gpasswd -a johndoe storage
#gpasswd -a johndoe users
How to completely remove all users and their home folders,in one word everything from users?I want to make clean start but I do not want to reinstall again whole system because of this error with permissions.
Last edited by nucleuswizard (2008-02-23 01:44:49)
Offline
You can just fix the permissions:
# chown -R johndoe:johndoe /home/johndoe/*
noobus in perpetuus
Offline
Nothing in your home directory should be owned by root (apriori). When you create an user, the contents of /etc/skel is copied into the newly created /home/<username> dir. None of the dirs you mention should be created there by default (ie. when you create an user with adduser, or useradd with appropriate parameters).
You can fix things as eerok indicates, except I think the default group is 'users', so I'd try that with johndoe:users.
You can completely delete any user, together with its home dir with userdel. EDIT: but I'd remove them one by one. No command does them all at once. You can delete all /home manually, but then you need to take care of /etc/group, /etc/passwd, /etc/shadow (at least).
Last edited by bender02 (2008-02-23 02:45:21)
Offline
Pages: 1