LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-26-2014, 07:06 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Linked folder in exports?


Basic unix question. On my Slackware server I sync my /home to my laptop. so I have for example:

/home/Eugene/Music
/home/Eugene/Documents
/home/Eugene/Downloads


I also have some exports and samba shares at /home/shares/Music exported as /export/Shares (IIRC webmin sets up export with links to whatever folder you export).

So I have:

/home/Shares/Music
/home/Shares/Pictures
/home/Shares/Software

I don't want/need two copies of Music but need the one under /home/Eugene because my Owncloud client doesn't sync symlinks

So I tried to replace /home/Shares/Music to /home/Eugene/Music but get access denied trying to access it from a remote linux box.

I'm guessing basic permissions, I need to make me and shares part of a group?
 
Old 09-26-2014, 08:36 PM   #2
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
I would bind mount I think.
 
1 members found this post helpful.
Old 09-27-2014, 05:27 AM   #3
eloi
Member
 
Registered: Nov 2010
Posts: 227

Rep: Reputation: 61
Just a comment

This remember me the thread about setting up a home server with Slackware, let me maintain my approach: an issue involving Samba, Webmin (and whatever Owncloud could be) is not a "Basic Unix question". I bet the issue is in the aforementioned software, not in Unix permissions.

For example, managing Samba permissions is a nightmare, a "Samba" nightmare. You have to try different values in smb.conf to get it working in the way you want ("create mask" and "directory mask" values).

Last edited by eloi; 09-27-2014 at 08:06 AM. Reason: My English betrays me
 
Old 09-27-2014, 08:02 AM   #4
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
quick fix, maybe
use hard links instead of soft links
 
Old 09-27-2014, 11:24 AM   #5
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
Doesn't my post compliment your approach?
Leave it in your shares dir. Make sure your users permissions are all fine since you mentioned lack of privledge. Bind this directory to your home dir. Now owncloud should be happy and everything should work how you want.

Remember you'll prob want to add the 3 fstab entries.
 
1 members found this post helpful.
Old 09-28-2014, 09:17 AM   #6
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Owncloud is a simple sync tool. I think its basic permissions, i.e. how do I allow one user to access a folder under another user's home folder.
 
Old 09-28-2014, 09:35 AM   #7
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
http://slackbook.org/html/book.html#...RE-PERMISSIONS ?

Last edited by genss; 09-28-2014 at 09:38 AM.
 
Old 09-28-2014, 01:02 PM   #8
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Ok, I looked up the bind mount and thats what webmin does when you create exports via it so I just added one more:

/home/Eugene /export/Eugene bind bind 0
/home/Shares /export/Shares bind bind 0
/home/Eugene/ownCloud/Music /home/Shares/Music bind bind 0

In case your wondering basically I just have /home on a dedicated partition and then just plug an a USB drive and rsync /home to it then stick it back in my safe for offline backups. So for all my shared stuff, i.e. stuff that I give access to my wife and kids and the living room media center I just put under a user called shares. I didn't want my Music folder duplicated though as that just wastes backup space.

Ok, I take it back, it works if I browse /home/Shares/Music but not /export/Shares/Music.

Last edited by enine; 09-28-2014 at 04:40 PM.
 
Old 09-29-2014, 02:07 PM   #9
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
Have /home/Shares/Music mounted before /export/Shares. This is just a guess but I have a feeling it'll work. Nevertheless I'm really curious as to why.. Does bind mounting keep static record of the existing inodes.. I always thought it worked more like a windows junction

Last edited by maciuszek; 09-29-2014 at 02:35 PM.
 
  


Reply



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
Issues Uploading via Apache to Symbolic Linked Folder asketchyfish Linux - Server 4 09-14-2012 02:12 PM
[SOLVED] NFS exports do not show up in /proc/fs/nfs/exports Gerard_2009 Linux - Server 2 09-07-2010 03:06 PM
/etc/exports ajeetraina Linux - Newbie 1 01-30-2008 11:24 AM
/etc/exports ajeetraina Linux - Newbie 1 01-30-2008 03:59 AM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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