LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-01-2014, 01:20 PM   #1
travalon
Member
 
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: http://www.linuxquestions.org/linux/...le_Permissions

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

I decided to upgrade to 9.2.1.5 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 192.168.1.0/24 and auth ip 192.168.1.18 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:
http://i736.photobucket.com/albums/x...tion_001-2.png
Shell as root /mnt/media/ ls -a and -l returns:
http://i736.photobucket.com/albums/x...tion_003-2.png
Share settings:
http://i736.photobucket.com/albums/x...tion_002-2.png
Mounted in Linux: these are the top level folders
http://i736.photobucket.com/albums/x...tion_004-2.png
Freenas 9.2.1.5 volume
http://i736.photobucket.com/albums/x...ection_005.png
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.
http://forums.freenas.org/index.php?...to-area.12689/
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
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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
travalon
Member
 
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:
drwxrw-rw-
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.
 
  


Reply

Tags
freenas, permissions



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

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:48 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