LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-22-2005, 06:17 AM   #1
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Rep: Reputation: 30
can you create symlinks in samba shares? if so, how?


this may sound like a dumb question, but i cannot, for the life of me, figure it out.

i have my windows hard drives mounted within my fedora box for easier access. i'm not sure if it's a restriction on the windows side or on the linux side, but i cannot figure out how to create symlinks only on these smbfs mounts.

i'll try something like this:

# ln -s futon.jpg test
ln: creating symbolic link `test' to `futon.jpg': Operation not permitted

is there any particular reason -- perhaps on the windows end, that would contribute to this issue?

a little more background:

the samba mount is on an ntfs drive. my /etc/fstab appears like so:
//ip.address.here/sharename /mnt/share smbfs username=username,password=pass,dmask=777 0 0

i'm not sure what else is needed. i don't really know how to edit the smb.conf properly (or if it's needed at all). i CAN create files and directories within this share, just not symlinks.

thanks!

Last edited by punt; 12-22-2005 at 06:41 AM.
 
Old 12-22-2005, 07:23 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I doubt it's possible to create a symlink on a windows disk.
FAT16 and FAT32 disks certainly don't support it.
NTFS disks only recently have been given the possibility to mount network shares as specific directories
(before, you had to mount them as a "station" like X.
So again, it's doubtful if it will work.

Making a symlink on a Linux disk to a file/dir on the Windows disks should work however.
Maybe you could try mounting your Linux disks on Windows via Samba as well? Then Samba takes care of the symlinks, and the Windows user will never get to see them...
 
Old 12-22-2005, 07:51 AM   #3
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by timmeke
Maybe you could try mounting your Linux disks on Windows via Samba as well? Then Samba takes care of the symlinks, and the Windows user will never get to see them...
hmm, i don't know how to do that as i've never set it up the reverse way. how would i proceed in trying that?

btw, i don't HAVE to use samba (but it doesn't seem to work with CIFS and i can't figure it out on NFS yet.)
 
Old 12-22-2005, 08:34 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
To mount your Linux disk on Windows, you basically need to set up a samba server that "exports"
your disk.
I haven't done that yet. But I think there are web interfaces available for Samba, so configuration should
be quite easy.

On Windows, you can easily mount it:
enter Explorer,
select the menu "Tools" - "Map Network Drive"
type in the path in the form \\server\shared_directory

Or alternatively, use Windows' "netuse" command.
 
  


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
mirrordir can't create symlinks flometzger Linux - Networking 0 12-07-2004 06:31 AM
How do I create shares with Windoze from Samba? dhatcher2 Linux - Software 2 10-28-2004 02:15 AM
create symlinks for wine 2004-05-05 duzchip Linux - Software 0 06-07-2004 02:59 PM
Cannot create, modify, or write to Samba shares mpriddy Linux - Software 4 02-18-2004 10:40 AM
Samba PDC: i can't create shares on win box dbos Linux - Software 6 08-15-2002 11:01 PM

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

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