LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2010, 09:30 AM   #1
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Help with symbolic links


I am running Ubuntu 9.04 Jaunty Jackalope. I have two 40gb drives.
Drive 1, /dev/sda2 has / (root) mounted on it. Drive 2, has just a generic /data partition it. I use drive 2 to store my music (really my media)library "/data/Music". I added a bunch of audio books last week and have become dangerously low on space (<500MB).
Drive 1 has gobs of space on it. So I got the idea of creating a directory on drive 1, "/More Music" and move the audio books there and create symlinks to them. So where I once had
Code:
/data/Music/Audiobooks/...
I would now have
Code:
/data/Music/Audiobooks -> /More Music/Audiobooks/
As root, I created the symlink in the following manner:
Code:
ln -s /More\ Music/Audiobooks/ /data/Music/Audiobooks
And ls -l /data/Music/|grep -i audiobooks yields the following:
Code:
lrwxrwxrwx  1 root     root       23 2010-08-25 09:45 Audiobooks -> /More Music/Audiobooks/
As a regular user I can navigate to /data/Music/Audiobooks and view the contents and all seems well.
The problem I am having is /data is being served as a windows share via samba. I can get to anything on /data just fine from my windows pcs, except for /data/Music/Audiobooks. When I try to access it from iTunes (or any other program) I get "Z:\Music\Audiobooks is not accessable. Access is denied."
Is this a permissions thing or something wrong in the way I created the symlink?
Code:
lrwxrwxrwx  1 root     root       23 2010-08-25 09:45 /data/Music/Audiobooks -> /More Music/Audiobooks/
drwxrwxrwx   3 root root 4.0K 2010-08-25 09:43 /More Music
drwxrwxrwx 3 cmfarley cmfarley 4.0K 2010-08-14 14:42 /More Music/Audiobooks
Any suggestions?
 
Old 08-25-2010, 09:55 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,848

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
I'd guess it has something to do with your samba configuration, not that I'm an expert or anything though.

A quick Google search popped up this Ubuntu forum thread discussing a similar, but kind of reversed, problem, and the configuration that solved it. Maybe it will lead you to the correct fix.
http://ubuntuforums.org/showthread.php?t=352016

Edit: More here. Yep, it looks like disabling the unix extensions is what you need.

http://www.compdigitec.com/labs/2010...wing-in-samba/

Last edited by David the H.; 08-25-2010 at 10:05 AM.
 
1 members found this post helpful.
Old 08-25-2010, 10:30 AM   #3
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Original Poster
Rep: Reputation: 32
Thanks David. That did the trick.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 07:03 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 01:25 AM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 07:05 AM
Symbolic links bkmesenbrink Linux - Newbie 2 11-13-2002 11:54 AM
Symbolic links Valerie Linux - Newbie 12 03-31-2002 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:54 PM.

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