LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2014, 05:55 PM   #1
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Rep: Reputation: Disabled
Question Question mark characters appear when changing the permissions of directory recursivel


When I change permissions recursively ,for example:
Code:
chmod -R +rw /opt/VirtualBox
Then the permissions of all subfiles and subdirectories become questionmarks such as
d?????????
d?????????
-?????????
-?????????
 
Old 02-21-2014, 01:02 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Basically, don't do that.

The places I've seen the ??? form are where the directory is a fuse mountpoint, and the implementation doesn't support it.

Since you didn't list what the contents of /opt/VirtualBox, it is a bit harder to go any farther.
 
Old 02-21-2014, 03:03 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I'd think the installation of Virtualbox would set these permissions. They did on my host.
So why are you trying to change them?

What precipitated this action?

See http://susepaste.org/31236612 for a dump of what mine are.

It should be used as an indicator of what may need to be done, and in no way an instruction for you to replicate those on your host.

It all depends on why you are trying to change them.
 
Old 02-21-2014, 06:14 PM   #4
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
That was what I just took as an example
This is the problem of not only /opt/VirtualBox but also every folder which contains many subfiles and directories
 
Old 02-21-2014, 06:29 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
The ???? result from having read but not execute permission on the directories.

I suspect that you may have done chmod -R 644 or chmod -R -x instead of chmod -R +rw.

In any event, use find to fix the directory permissions and then use find to change only the file permissions recursively.

Last edited by astrogeek; 02-21-2014 at 06:36 PM. Reason: typos
 
Old 02-21-2014, 06:47 PM   #6
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Yeah Thanks! that was the execute permission on a folder.
Is it necessary that a folder has a execute permission?
 
Old 02-21-2014, 06:57 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by gonny95 View Post
Yeah Thanks! that was the execute permission on a folder.
Is it necessary that a folder has a execute permission?
Yes, in directory context the execute bit means that you have permission to traverse the directory. Having read, but not execute says that you can see the files in the directory but cannot access the inode information inside it. Hence, you see the files but not their permissions.

Find a quick reference here, or search for Unix directory permissions - it is a Unix thing.
 
2 members found this post helpful.
Old 02-21-2014, 07:03 PM   #8
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
Yes, in directory context the execute bit means that you have permission to traverse the directory. Having read, but not execute says that you can see the files in the directory but cannot access the inode information inside it. Hence, you see the files but not their permissions.

Find a quick reference here, or search for Unix directory permissions - it is a Unix thing.
Thank you sooooo much!!!!!!
 
Old 02-21-2014, 07:06 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
You are welcome!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing permissions for new files, but only for one directory tlb944 Linux - Security 2 10-03-2013 09:07 PM
changing directory permissions . jay.singh Linux - Newbie 11 03-28-2013 09:59 AM
Changing Directory Permissions trevor4706 Fedora 2 06-13-2006 06:37 PM
Changing directory permissions Bagsy Linux - Newbie 1 07-08-2003 05:50 AM
changing permissions for entire directory jmarsh Linux - Networking 2 05-13-2003 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration