LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 06: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, 02:02 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
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, 04:03 PM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,685
Blog Entries: 10

Rep: Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080Reputation: 2080
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, 07: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, 07:29 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,032
Blog Entries: 1

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
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 07:36 PM. Reason: typos
 
Old 02-21-2014, 07: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, 07:57 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,032
Blog Entries: 1

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
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, 08: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, 08:06 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,032
Blog Entries: 1

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
You are welcome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:07 PM
changing directory permissions . jay.singh Linux - Newbie 11 03-28-2013 10:59 AM
Changing Directory Permissions trevor4706 Fedora 2 06-13-2006 07:37 PM
Changing directory permissions Bagsy Linux - Newbie 1 07-08-2003 06:50 AM
changing permissions for entire directory jmarsh Linux - Networking 2 05-13-2003 09:12 AM


All times are GMT -5. The time now is 06:26 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration