Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-30-2007, 03:14 PM   #1
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Creating symlinks on a CIFS share?


Is it possible to create symlinks on a cifs share? Specifically, a file on the cifs share, symlinked to the cifs share. Like so:
ln -s /mnt/cifs-1/ubuntu-7.04.iso /mnt/cifs-1/ubuntu-latest.iso
If it is possible, are there any special things I should be doing? I'm basically just mounting the volume via cifs in fstab and trying to create a mirror. Here's my line in fstab:
// /var/mirror             cifs username=windows_admin_account,password=password,uid=0,gid=0,dir_mode=0775,file_mode=0644,rw      0 0 and the username/password are changed for the example

From there, if I go to /var/mirror and touch a file (or create one, copy one, whatever) and then try to symlink to it:
touch test.file
ln -s test.file test.cooler.file

I get this error:
ln -s test.file test.cooler.file
ln: creating symbolic link `test.cooler.file': Operation not supported
Any thoughts, ideas, obvious pointers, links, or other useful input?


Old 08-30-2007, 04:26 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
oh hey chad.... no, as symlinks are purely nodes in the inode tree, and not actual disk space it's an intrinsic part of the filesystem itself, and that's only in POSIX filesystems, which SMB isn't - there's just nowhere for the data to go, just like it is for unix file permissions. i remember seeing that NTFS oddly *does* support symlinks, but that's obviously not going to help when smb / cifs is in between.

right... who's gonna prove me wrong this time?
Old 08-30-2007, 04:34 PM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Thanks for the response! I guess I'll either have to move forward to migration towards a Linux fileserver, or just wait it out and see how the mirror goes in the meantime. The immediate need isn't anything important, I'm just setting up a local Gentoo mirror so I can emerge faster on the other servers and my desktop. I suppose if something important came up, I could either figure out how to do it in windows or, well, move up the time table!

Thanks again Chris,



cifs, symlink

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
Mount cifs share problems BarryLinux Linux - Newbie 11 06-04-2012 12:42 AM
Kerberos and CIFS network share MALDATA Linux - Server 4 04-10-2007 04:43 PM
Access CIFS Share from Linux johnnybhoy67 Linux - Networking 0 11-30-2005 09:30 AM
CIFS samba share ronanio Linux - Software 1 11-06-2005 11:22 AM
Creating symlinks bripage Linux - General 2 07-23-2002 07:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration