[solved] owner and permissions become "unknown"?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
pastic
Level 2
Level 2
Posts: 52
Joined: Thu Jun 16, 2016 11:50 am

[solved] owner and permissions become "unknown"?

Postby pastic » Thu Apr 20, 2017 6:28 pm

I was playing in a virtual machine, changing permissions for wordpress folders/files copied to /var/www/html, when I ran into a new experience:

    I am in a terminal at /var/www/html and I launch commands at /var/www/html/dev
    Octal permissions for subfolders are 775, and for files 664, when I begin.
    I do sudo chmod -R 755 dev and all subfolders/files become 755
    Then, to revert, I do sudo chmod -R 664 dev and now all permissions/group/owner/datemodified become "unknown".

Is 664 not a valid permission? But files were 664 prior to my commands?
Since I am in a virtual machine I can just go back to a previous snapshot, so I don't need help per se, but I would like to understand what is going on.
Last edited by pastic on Fri Apr 21, 2017 3:30 am, edited 1 time in total.
Mint 18.1
Happy w/ Linux since June 2016
Asus Sabertooth x58 ~ i7 950 ~ Radeon HD 7750

User avatar
WharfRat
Level 19
Level 19
Posts: 9204
Joined: Thu Apr 07, 2011 8:15 pm

Re: owner and permissions become "unknown"?

Postby WharfRat » Thu Apr 20, 2017 10:54 pm

If you change a folder's mode bits to 664 then it means that it is read/write for the owner/group and read only for others, but you can't enter it.

Without the executable bit set on a folder access to that folder is denied.

Code: Select all

bill@XPS] ~ $ sudo chmod 664 junk
[bill@XPS] ~ $ cd junk/
bash: cd: junk/: Permission denied
[bill@XPS] ~ $

Code: Select all

[bill@XPS] ~ $ sudo chmod 764 junk
[bill@XPS] ~ $ cd junk/
[bill@XPS] ~/junk $


Setting the mode to 764 it will then be read/write/executable for the owner i.e., you'll be able to cd to it :wink:
Image Image

pastic
Level 2
Level 2
Posts: 52
Joined: Thu Jun 16, 2016 11:50 am

Re: owner and permissions become "unknown"?

Postby pastic » Fri Apr 21, 2017 3:29 am

I see. Thanks!
Mint 18.1
Happy w/ Linux since June 2016
Asus Sabertooth x58 ~ i7 950 ~ Radeon HD 7750


Return to “Newbie Questions”

Who is online

Users browsing this forum: Brian Potter, johanrf and 9 guests