Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 07-01-2014, 01:20 PM   #1
Registered: Jun 2012
Location: AZ
Distribution: Mint 13, Ubuntu
Posts: 78

Rep: Reputation: Disabled
Too many owners - chmod 766 bad idea

This is a cut and paste post that has had no replies in the freenas forums.
I just found this:

and am investigating. But, in the mean time any input is appreciated.

I decided to upgrade to the other day and went with a fresh install on my 3.0 thumb drive. I then auto imported my only volume. I added the unix share as nobody for both mapalls. Auth network and auth ip the linux box. When I mounted the share in Linux Mint 13 everything was there but I had no access to the files as they were added from various machines and had various owners. My bright idea was to chmod the /mnt/media folder to 766 ( chmod -R 766 /mnt/media ) in an effort to grant read and write permissions to any machine. Bad idea. Now when I mount the share the top level folders are there but the contents are blank. ssh into the nas and navigate to /mnt/media then ls -l returns the following:
Shell as root /mnt/media/ ls -a and -l returns:
Share settings:
Mounted in Linux: these are the top level folders
Freenas volume
I know the data is there but I need to fix the permissions.
User Travis no longer exists. I believe user 1002 was user Travis. User travis is the user name of the linux box. I think what I need to do is chown the non system directories to a current user or a system user but, that's as far as I get.
I have RTFM and printed it for reference but there is not a bad idea chapter. I am wary of proceeding without input from the community. I know there are other post covering the same issue but they didn't have much for me.
I've read through this several times as well.
Any input is appreciated....

Last edited by travalon; 07-01-2014 at 01:23 PM. Reason: fix image urls
Old 07-01-2014, 04:31 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,799

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
When you remove the execute bit (the x in rwx) on a directory you can no longer see the contents. You need to either be the owner of /mnt/media or change the permission to 777.
Old 07-01-2014, 05:09 PM   #3
Registered: Jun 2012
Location: AZ
Distribution: Mint 13, Ubuntu
Posts: 78

Original Poster
Rep: Reputation: Disabled
Thanks for your reply but,I'm afraid of 777. Can I create the owner? Also just to be clear, let's use the music folder, it shows:
so the missing execute bit would be on the end?
Another question I have is did I change the owner of any system directories? most of the owners are travis with a couple of root and uid(?)owners. Do I need to change the GREEN directories back?

Thanks again....

Might have figured it out... so if I chmod the music folder to 775, that would let the owner rwx, the group rwx and the other r-x. The executable bit makes it visible to all...

Last edited by travalon; 07-01-2014 at 06:10 PM.


freenas, permissions

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
finding bad owners graziano1968 Linux - Server 3 01-23-2009 12:44 PM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 01:33 PM
Bad Idea dudeman41465 Linux - Software 1 10-10-2005 02:37 AM
Is this a good or bad idea? kemplej Linux - Software 2 10-26-2004 09:34 AM
Why is chmod a+r -R /usr/ a bad idea? BroX Linux - Newbie 4 11-18-2003 12:47 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:55 AM.

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