You are not logged in.
I've changed the mode bits of the directory so now:
File: '/var/log'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 3670023 Links: 7
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-04 18:05:28.491646928 +0300
Modify: 2016-04-04 18:13:10.764984232 +0300
Change: 2016-04-04 18:13:10.764984232 +0300
Birth: -From /etc/group file:
root:x:0:root,floreaI logged in with user florea at the start of computer.
When I'm trying to open the directory using the PCMan file manager I simply get "Error opening '/var/log': permission denied".
Why?
Last edited by asdfiex (2016-04-07 17:15:03)
Offline
Hello!
asdfiex - I suggest you do the following:
- check the current ownership of your var and log directory
- If it is not how you like it, simply change the "user" and the "group" to your preference
I also suggest that you read up on file permissions in linux
Regards
Martin
Last edited by onslow77 (2016-04-04 16:34:14)
Offline
So I just found that chmod commands aren't keeped after restart. Good to know!
But that's not all, PCManFM file manager was also reacting strangely ( showing different permissions in the GUI than in the terminal ).
Anyway, now the example above works fine.
Thank you for your tips, onslow77!
Offline
So I just found that chmod commands aren't keeped after restart. Good to know!
What?! Where did you read that?
Offline
And why is your normal user part of the root group? You are asking for trouble with a setup like that
Offline
asdfiex wrote:So I just found that chmod commands aren't keeped after restart. Good to know!
What?! Where did you read that?
Here. There says about Ubuntu, but I thought the chmod apply the same on Arch. Also made a test and the permissions aren't keeped after restart.
Offline
And why is your normal user part of the root group? You are asking for trouble with a setup like that
I just wanted to have root privileges on my normal user. Removed it finally.
Offline
Offline
Here. There says about Ubuntu, but I thought the chmod apply the same on Arch. Also made a test and the permissions aren't keeped after restart.
I think it only applies to directories and files which are modified after a reboot, like /dev. Since /tmp is a tmpfs, I think it inherits default permissions from somewhere, hence your changes are not sticking. But otherwise, permission and ownership changes are permanent.
Offline
Summarizing, permission and ownership changes are permanent only if there's no inheritance from God knows somewhere else place.
I chmodded a brand new file on my home and after rebooting the system the changes were kept.
Last edited by asdfiex (2016-04-08 17:17:43)
Offline