Skip to content

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

2 points9 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
amnxri

Author

23
posts
307
comments
3
media
View profile

12 comments

unknown author6 hidden

Deleted before we saved it.

2 points

as i remember, / was ext4 and /home extfat, i want it to be accessible from both linux and windows sorry i am out of house, currently i don't have the laptop

0 points

exfat does not support permissions or symlinks or a lot of the thinks a home partition generally needs.

9 points

U can choose ntfs I think the Linux ntfs driver can cope with that

0 points

This is really strange behaviour. useradd -m should create the home directory and make the user the owner already. And after suing to root, you should be able to do the chown. The only thing that I can think of is that the filesystem where /home is mounted is read-only.

2 points

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

-1 points

i su(switch user) to root, and try

chown adam /home/adam, it says chown: changing ownership of '/home/adam/': >Operation not permitted

i have done this, please read the pot

0 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.