PDA

View Full Version : symbolic link not followed



Paul
2004-01-19, 15:34
I am using SlimServer 5.0.3 nightly build 2004_01_19 on Redhat 9. There is link in the music directory that does not get read on rescan, and when I go to Browse Music Folder it does not show up. All the other directories are read ok.

The link is as follows:

[user1@musicserver2 music]$ ls -l | grep mdir2
lrwxrwxrwx 1 user1 user1 24 Nov 22 16:59 mdir2 -> /home/user1/mdir2/

From the terminal window I can cd to the directory and it shows all the files. (I can also see the directory from a Windows client via samba.) I have tried a chmod 777 * in the directory.

Is there something I need to do on the slim server or Redhat to follow links?

Thanks

Paul

kdf
2004-01-19, 15:47
Quoting Paul <slimp3 (AT) acima (DOT) co.uk>:

> I am using SlimServer 5.0.3 nightly build 2004_01_19 on Redhat 9. There is
> link in the music directory that does not get read on rescan, and when I go
> to Browse Music Folder it does not show up. All the other directories are
> read ok.
>
> The link is as follows:
>
> [user1@musicserver2 music]$ ls -l | grep mdir2
> lrwxrwxrwx 1 user1 user1 24 Nov 22 16:59 mdir2 ->
> /home/user1/mdir2/
>
what are the permissions for /home/user1 and /home/user1/mdir2?
chmod -R 777 * should be needed if you have subdirectories in there.

-kdf

Roy M. Silvernail
2004-01-19, 15:58
On Mon, 2004-01-19 at 17:34, Paul wrote:
> I am using SlimServer 5.0.3 nightly build 2004_01_19 on Redhat 9.
> There is link in the music directory that does not get read on rescan,
> and when I go to Browse Music Folder it does not show up. All the
> other directories are read ok.
>
> The link is as follows:
>
> [user1@musicserver2 music]$ ls -l | grep mdir2
> lrwxrwxrwx 1 user1 user1 24 Nov 22 16:59 mdir2 ->
> /home/user1/mdir2/
>
> From the terminal window I can cd to the directory and it shows all
> the files. (I can also see the directory from a Windows client via
> samba.) I have tried a chmod 777 * in the directory.

Symbolic links have no permissions of their own. That's why 'ls -l'
shows them as 'lrwxrwxrwx'. But they also don't propogate a chmod to
their target. So you need to check the perms on /home/user1/mdir2/ to
make sure it's readable by the user the slimserver runs as. 755 is all
that's necessary, as slimserver doesn't write to the music directory
tree. But the execute bit needs to be set on directories, or you won't
be able to access any subdirectories under them.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com

Jack Coates
2004-01-19, 22:54
On Mon, 2004-01-19 at 14:58, Roy M. Silvernail wrote:
....
> Symbolic links have no permissions of their own. That's why 'ls -l'
> shows them as 'lrwxrwxrwx'. But they also don't propogate a chmod to
> their target. So you need to check the perms on /home/user1/mdir2/ to
> make sure it's readable by the user the slimserver runs as. 755 is all
> that's necessary, as slimserver doesn't write to the music directory
> tree. But the execute bit needs to be set on directories, or you won't
> be able to access any subdirectories under them.

a nifty trick to doublecheck if what you think is possible is really
possible:

su -
su slimserver -c 'mpg123 /home/user1/mdir2/somefile.mp3'

--
Jack at Monkeynoodle Dot Org: It's A Scientific Venture...
************************************************** ********************
* "What would I see if I could walk away from me?" *
* -- Candi Says by The Velvet Underground *
************************************************** ********************