You are not logged in.

#1 2008-02-23 01:43:24

nucleuswizard
Member
From: Serbia
Registered: 2007-10-07
Posts: 79

Permissions??

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. sad

Last edited by nucleuswizard (2008-02-23 01:44:49)

Offline

#2 2008-02-23 02:39:00

eerok
Member
From: Canada
Registered: 2005-03-20
Posts: 171

Re: Permissions??

You can just fix the permissions:

# chown -R johndoe:johndoe /home/johndoe/*

noobus in perpetuus

Offline

#3 2008-02-23 02:44:03

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,329

Re: Permissions??

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

Board footer

Powered by FluxBB