LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-20-2011, 10:40 PM   #1
Quantaa
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Unhappy Locked out of files and cant change permissions on SAMBA share NAS


Hi all,

This is my third day trying to solve this. My lack of understanding is really keeping me from getting to the cause of the problem. I'll try to explain what happened, rather than giving technical details that I probably dont understand well enough to make sense with.

I had a Mac Pro and decided to sell it so I copied all my valuable data on to this DLink DNS343 NAS that I bought thinking they would be safe until the new mac arrived.

Got the new imac and went to copy it all off the NAS onto my the local drive.

For some reason, I am now locked out of various files. A JPEG here, a DMG there, no consistency to it that I can tell. And when I say locked out I mean LOCKED OUT. I cant even read the files in order to copy them off the NAS.

So after all my days of trolling through the web, I seem to have narrowed it down a BIT.
I THINK the files have attributes that are not allowing ME (my UID?) to read those files. I'm fairly sure its not the NAS because I have removed ALL restrictions. Its 100% open. I can write and read new files but cant touch certain things i put on there before the new mac.

From my reading, I gather that I am no longer the "OWNER" of those files. But also that I cant change the owner because it cant be done over a SAMBA share.

What I've tried:
* SAMBA & FTP
* resetting access control
* chmod and chown commands
* tried using UBUNTU to copy off files, no result
* etc etc etc

I'm at my wits end

Are these files actually encrypted or is this just an issue of permissions attributes that cant be modified?

PLEASE FORMAT ANSWERS AS STEP BY STEP INSTRUCTIONS FOR A NEWB

Thanks!
 
Old 01-20-2011, 10:57 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
If you can mount the samba share, list the ownership/permissions of the files and directories. How is the share mounted?

Does this NAS have a USB interface where you can mount the filesystem directly? What is the filesystem used on the nas?

Post the actual error.
 
Old 01-20-2011, 11:27 PM   #3
Quantaa
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
How do I list the ownership/permissions of the files and directories?

The share is mounted via SAMBA using the GO>CONNECT TO SERVER in OSX Snow Leopard
NAS has ethernet only
File system is EXT3

When I try to open the file, i get...
http://img80.imageshack.us/i/screens...0121at313.png/

When I try to copy the enclosing folder or file to my desktop, i get...
http://img193.imageshack.us/i/screen...0121at314.png/

When I try to change permissions using 'get info', I get this...
http://img696.imageshack.us/i/screen...0121at319.png/
 
Old 01-21-2011, 07:40 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Open the shell and enter the "mount" command to list the mounts. "Connecting" to the server my cause the smb share to be mounted. If so, you can cd to the mount point and use "ls -l" to list the files and their permissions.

I thought you were between macs and using Ubuntu to transfer the files out of the NAT.

Since the mac also uses Samba, you can also use "smbclient" to access the share.

"smbclient -l <hostname>" to list the shares.
Try entering "help" and see which commands are available.

smbclient //host/sharename
will access the share as you might with ftp.
If cifs is used (maybe not on the mac), you will have access to commands such as getfacl, setfacl. Try to list a problem file with "getfacl". It should list the permissions and ownership of the file. CIFS allows you to use and change unix/linux ownership & permissions on a samba share. Since the nas uses ext3, it uses linux and may support CIFS.

Here is an example of mounting a share (in Linux) on a nas device (maxtor external drive with ethernet port):
Code:
sudo mount -t cifs //maxtor/jschiwal /mnt/maxtor/ -o uid=jschiwal,gid=jschiwal,dir_mode=0777,file_mode=0666,rw
Look at the mount manpage on your mac or you could use Ubuntu as before.
Now I can use "ls -l" to list the owner and the permissions. I can even use "sudo chown bob" to change the owner, and chmod to change the permissions.

Another possibility is to create a user & samba owner to match the ownership of the files.
Also try to remember your previous username/password under the old system.

Last edited by jschiwal; 01-21-2011 at 07:41 AM.
 
  


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
change access permissions on Samba share from win2k? TongueTied Linux - Software 2 03-25-2011 03:28 PM
change samba share permissions using CLI that were initially set with Nautilus lupusyonderboy1 Linux - Server 2 05-27-2009 05:27 PM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 11:55 AM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 12:48 PM
change access permissions on Samba share from win2k? TongueTied Linux - Software 1 08-27-2003 05:00 PM


All times are GMT -5. The time now is 03:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration