LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-19-2012, 06:22 PM   #1
djlevi
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
Permissions Inherittance between nos Linux server and Mac osx client


Hi,
I'm trying not to inherit permisions when copying files from Mac osx to nfs server on Linux.
I tried setgid, acl, etc without success. It works creating new files but It is not copying already made files. Ie: i copy a 700 file to nfsserver and stills The same permissions but i create new ones and get 777, what is like i want.
Is there any way to overriding source permissions? I could made with samba but not in nfs.
Thanks, i hope my explanation was clear.
 
Old 11-20-2012, 10:17 AM   #2
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
How are you copying the files? Are you mounting the NFS share via finder in the desktop, or are you using a console command to mount it? OSX is based on BSD, but anything done in the finder will have different permissions than something you do in the console. It maybe best to mount it by hand via a command line and see if that will help.
 
Old 11-20-2012, 12:25 PM   #3
djlevi
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi, thanks for your answer.
Iīm mounting nfs shares with finder. In any case, itīs possible force writing permissions in server side overriding the old ones?
 
Old 11-20-2012, 03:56 PM   #4
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
I think the issues your having maybe related to the umask on these files. I have read similar issues on Apples forums. What version of OSX are you running, apparently the umask is an issue with 10.6, I can't say for certain about 10.7 or 10.8 . Here is a KB article from Apple about umask settings http://support.apple.com/kb/HT2202 You may want to run a test with a test machine and see if setting a custom umask fixes the issues.
 
Old 11-20-2012, 06:29 PM   #5
djlevi
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi, i already tried umask changing like article says. I made launched.conf with desired umask but only works with new files but not with copied ones, which maintains original owner and permissions.
I'll make some tests with acl and setgid again because I need to ensure all tests I made are correct. I thought setgid bit should work changing subfolders group ownership, but the problem is that permissions files with 700 came from somewhere, so I need they become 770 in order to access them trought group permissions. Maybe acl masks inheritance should work but it doesn't inherit.
Thanks again.
 
Old 11-21-2012, 03:07 AM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
tar the files first with

tar -cvpf myfiles.tar /backup

From tar's man page:

Quote:
-p, --preserve-permissions
extract information about file permissions (default for supe-
ruser)
The UID and GID of the files and directories must correspond with the same users between systems, but if not, it is easily fixed with the "chown -R user.group directory" command.
 
Old 11-21-2012, 05:51 PM   #7
djlevi
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks but it doesn't suit for this case. People copy files from finder, don't know command tools.
 
Old 11-22-2012, 12:29 PM   #8
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Heaven forbid that I suggest this, but have you tried running the file share server from OSX server, or maybe another protocol? Is there a specific reason for needing NFS ?
 
Old 11-26-2012, 01:24 AM   #9
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
Quote:
Originally Posted by djlevi View Post
Thanks but it doesn't suit for this case. People copy files from finder, don't know command tools.
Are they the ones needing to copy files? Or is it you? Then if it's you, why would it matter if those people used finder and don't know commands?

What you're asking for is not something uncommon, and there's several search results on Google providing answers.

https://www.google.com/search?q=shar...ween+osx+linux
 
Old 11-26-2012, 06:57 AM   #10
djlevi
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,
I have not problem managing files. If is there any problem i can fix permissions or whatever must be done. The users have this problem, and itīs hard to find any solution. Iīve been googling a lot before this post.
The thing about command issue is about tar recomendation. I could not ask anybody to tar files and untar again to fix this. They are desktop users.
Iīve already solve this with the solution a didnīt want. I change UID for linux machine that has problem reading mac wrotten files. Now all itīs ok, but iīd liked to find any like samba solutions. In samba you can set permissions overriding original ones.
Thanks in any case for your help.
 
  


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
LXer: Mac OSX IPSEC VPN via command line using builtin Racoon client LXer Syndicated Linux News 0 09-19-2012 05:00 PM
How do I change permissions on Mac OSX hard drive from SUSE KDE live cd? johan1391 Linux - Newbie 12 07-23-2010 09:27 AM
How to turn Mac OSX into a NFS server? Linux.tar.gz Other *NIX 1 05-30-2006 05:12 AM
Mac OSX Server craterburnsyou Linux - Networking 5 05-24-2005 12:00 AM
Slackware server OSX client dublinclontarf Linux - Networking 2 03-16-2004 07:54 AM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
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