/home/username permission problem
after installing and booting to arch, i have always logging in as superuser(root), i know it's not recommended, so i do
useradd -m adam
passwd adam
i logout from root, and login to adam
i try (for testing)
mkdir dir
and it respond with
mkdir: cannot create directory dir: permission denied
pwd, says /home/adam,so i should have permission here
but stat -c %U /home/adam say that the owner (of /home/adam) is root,
i su(switch user) to root, and try
chown adam /home/adam,
it says
chown: changing ownership of '/home/adam/': Operation not permitted
is this expected ? what to do to solve this ? why is this happening ?
Edited 3 Feb 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 100% up
- Kind
- Text
- ID
- amnxri
12 comments
What is the output of
ls -l /homeandmount?Deleted before we saved it.
as i remember,
/was ext4 and/homeextfat, i want it to be accessible from both linux and windows sorry i am out of house, currently i don't have the laptopexfat does not support permissions or symlinks or a lot of the thinks a home partition generally needs.
Deleted before we saved it.
U can choose ntfs I think the Linux ntfs driver can cope with that
This is really strange behaviour.
useradd -mshould create the home directory and make the user the owner already. And aftersuing to root, you should be able to do thechown. The only thing that I can think of is that the filesystem where/homeis mounted is read-only.User home should be create using the default Skeleton ipon useradd if u skipped this you must login as root and create it as root and then chown it
i have done this, please read the pot
What does 'ls - lA' say should work for root anyhow though Hm Post the ls output abbrrviated anyhow. U maybe have mounted home read only? Try Touch FILEName to check