General :: Resolving Symlinks Mounted Via Samba On Windows?
Feb 11, 2010
I have a samba mount in Windows, mounted from a local Linux devbox. The projects on this mount contain a lot of symlinked directories. They all work fine and look like normal directories to Windows. What I'd like to do is figure out for a given file what its real UNIX path is.The context is: in my editor I have a script that runs the Perforce open command, to which I pass the file location.p4.exe edit FILE_LOCATION
However, perforce will not understand this FILE_LOCATION, if on the Linux side part of the path is a symlink. It needs to know the real path.What I need is something along the lines of the Linux readlink command, which resolves symlinks in paths.
This question is about windows 7. I want the "C:program Files" folder to be a symlink to a directory on another partition. I can't do this from within windows because it locked the Program Files Folder. Will a linux live CD do the trick?
When I access my OpenSUSE box's samba shares from another PC I am able to browse them, but am not able to follow symlinks.I've had the problem before on Ubuntu and fixed it by adding the following lines to my /etc/samba/smb.conf
I have installed Slackware on MANY boxes over the years and SaMBa has always resolved hostnames via UNC (\slacksharename) on a local net, but I am now at a loss after trying this at home. A UNC to the share via IP (\192.168.1.123sharename) does work fine, but this is the 1st Slackware distro I have ever had problems with resolving a broadcasted UNC. Subnet is 255.255.255.0 w/ both machines plugged into a switch and they are "linked" fine and other versions of Slack worked fine... This is for a one-trick pony, SaMBa share only, but she is not doing tricks! My other Slack box 13.1.0 resolves a Windows 7 \hostnameshare request UNC fine on the same net. smb.conf (This is not the share I am going to use, but if once this works I can get a /dev/md mounted and shared with minor changes):
Quote: [global] server string = Server2 map to guest = Bad User log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 [Code]....
I have a CentOS 5.3 box running Samba and OpenVPN. I have the Samba server setup as a WINS server and OpenVPN pushes the WINS server to clients when they connect. Everything is working great except for one problem. When I connect to the VPN using a Windows machine at a remote location, I can ping all the host names of computers on the VPN network no problem at all. However, when I ping the host name of the OpenVPN server it resolves to 192.168.122.1. All my machines are on a 10.x subnet and I have no idea where this ip is coming from. I've checked the hosts file, lmhosts, etc. and can find no reference to this 192.168.122 subnet.
I think I recall seeing this 192.168.122.1 ip when I had installed the Virtualization group and it created a virtbr0 network bridge with that ip. I've since removed the Virtualization software and deleted that bridge.
I have mounted samba volume and I need to have write permissions for every new folder that's being created (currently, by default, on every newly created folder i have only read and execute permissions).I tried changing umask, but with no effect on mounted folder, umask changed only for local filesystem. I tried mounting with umask option, but with no effect again.I'm using ArchLinux on this machine, and I installed samba using default package manager (pacman).
I'm new to Linux and I was running Windows Vista before. I mounted my Windows hard drive into Ubuntu and now whenever I try to long onto Windows I get a black screen with the mouse where the log-in page should be. I used all the commands that was I had read about like "sudo mount" and stuff and I can see my Windows files in Ubuntu but no log-on page for Windows.
We recently upgraded our Samba server from Fedora 10 to Fedora 12. After the upgrade, when users connect to a Samba share from their Windows PCs, they can no longer see the symlinks in the share like they used to under Fedora 10.We are using the same smb.conf file as under Fedora 10, so I'm not sure what has changed.
I run Windows Vista and Ubuntu 9.10 dual boot. Today while booting windows, it informed me that there was something wrong with my hard disk and it would perform a check, and made some fixes.
Only when I wanted to boot into ubuntu again did I realise that the disk check had corrupted my linux partition. Ubuntu's load screen shows up, but just before the login screen it says that the filesystem could not be mounted.
Is there a way I can fix this? And how do I prevent windows from doing the same in the future?
I have a Windows 7 professional x64 pc that intermittently fails to resolve host aliases. The nameserver is a Fedora 11 system running bind 9.6.2-p2. Its cannonical name is trixter.intranet.org, and it serves several web sites, each with a different host alias: hg.intranet.org, svn.intranet.org, bugzilla.intranet.org, etc.
Occasionally, the Windows pc will be unable to find any of the aliased hosts, even when it can find the canonical name. The aliases will be un-resolvable for a period of several minutes, and then, with no intervention, they can be found again. Trixter can always resolve the aliases to itself.
Even stranger, when I use Cygwin from the problematic Windows 7 PC, it CAN resolve the hosts. I can ping hg.intranet.org from a Cygwin shell, but not from a cmd.exe window. Administrator privileges make no difference.
I just installed a dual boot XP/Debian 5.0.4 setup on my Dell 5100 laptop. I now have constant problems with "resolving host" when using Debian. The connection when using a browser or downloading is noticeably slower than when using Windows or my Ubuntu install on my desktop. Also, whenever using the Debian install on my laptop, both it and my desktop, which both connect through the same Linksys router, constantly show "resolving host" (Chrome browser) until it just timeouts. Rebooting the DSL modem sometimes fixes it for a while (although it's still slow even then), but it eventually happens again. Turn off the laptop/switch to the XP OS on it, and the problems disappear on both the laptop and desktop. Is this a known problem for Debian 5.0.4?
I have used Linux on and off over the past 15 years. Linux has been the solution to a lot of my networking problems over the years. I work in a school and I am keen to setup Linux labs for the students. Users can logon with their active directory [Micoroft accounts] and can access their files off server drives. All this is made easy with the help of CentrifyDC. I can simply access a network share and CentrifyDC handles the authentication.
My issue is that some applications will see mounted samba shares and some applications won't. For example I can open and save files to my Windows servers using applications such as Openoffice, Gnumeric, Abiword. However apps like DIA will only show local drives. Maybe some applications use the default file manager where the mounts are bookmarked whilst other use their own file manager?
I have recently installed Debian on my NAS server. I have also configured Samba for sharing the home directory of a nas user i.e. /home/nas To this directory I have read/write from a windows machine using the nas user credentials.
When I mount my RAID partition /dev/md0p1 to the /home/nas directory, I then realize that all content in this directory (files and subfolders) is only owned by the root user. When trying to access from the windows machine the /home/nas directory, I do not have any write access, only read. I have tried both the nas and the root user credentials.
I have also attempted the change the ownership of the mounted RAID partition to the nas user with the -R recursive option, but I get for the internal files/subfolders an error "operation not supported".
How can I overcome this problem?
- Is there something not done properly in the /dev/md0 array definition (i.e. ARRAY /dev/md0 level=raid1 num-devices=2 UUID=bddf8b69:c97967b5:cb104784:7fef7cc3 )?
- Is there something not done properly in the /dev/md0p1 mounting (i.e. mount /dev/md0p1 /home/nas)?
- Should I do any extra configuration before the mounting etc?
In my fstab I have this entry to connect to my NAS box:
Code: //192.168.0.1/share /mnt/share cifs username=user,password=******,auto 0 0.For a while it was connecting on startup with no problem (it connects via wifi). But now when I navigate to the directory there is nothing there. However if I run mount it reports this:
I'm running 10.04 server on a Mac G5 with 2 network interfaces, one pointing to my network (192.168.0.x) and the other to a local partner network (192.9.100.x) with which we share a network volume to give/take PDF files.My client environment is MAC OS X (from 10.4 to 10.6) and until now only one client (with 2 nics) was connected to that volume: we don't have layer3 switches to do static routes over the two networks, so I decided to use my Ubuntu Server Mac to do this (it's also my new syslog server...).
Nics are configured correctly, and the local share (192.168.0.x) is well seen by everybody.But, when I mount the remote volume (192.9.100.x) to THAT shared folder, nobody is able to connect to the samba share (that now lists the remote volume directory...). The MAC OS X tells "unable to unmount the volume". IP forwarding is also activated on /etc/sysctl.confHere is a part of my smb.conf file
I am running Ubuntu 10.4 [64bit] on a AMD dual core with 4gb of RAM. My Problem: I am mounting to a Windows share from my Ubuntu box and everything is working as expected however, when a file is added, deleted, or modified the Ubuntu File browser does not reflect that change until the next refresh. The Windows users with Explorer will reflect the change immediately and automatically.
Is there a way to make the Ubuntu File Browser respond like Explorer when mounting to a Windows share? I call this behavior "maintaining state".
so after searching and reading, and searching some more, im stuck. i cant seem to get a mounted thumb drive to give write access. first thing to know is that, im using a seagate dockstar with a primary thumb drive[sda1] booting debian and samba.
i guess you could say im still in the testing phase, just trying to make sure files can be shared, mounted and accessed by users. the problem is stated as the title. i have successfully shared a folder in sda1 with rw access, but i cant do the same for the second drive[sdb1].
for sda1 with rw access, here are the smb.conf settings:
Code: [shared] path = share available = yes valid users = mark
I tried to run one grep that excludes symlinks and pipe it into a second that searches for my pattern but I continue to get the recursive directory loop error. As a result (I think) my grep is incomplete as the search just loops between directories symlinked together.
I'm using Karmic Koala 9.10 (amd64) on /dev/sdb6 and windows 7 on /dev/sda2. I mounted my windows 7 partition in Nautilus. I copied some files and made some folders from Nautilus onto my windows 7 partition. I tried booting into windows 7 but it failed on loading Windows 7. It then gave me a blue screen flashes and then restarted. The blue screen flashes so quickly i cannot determine the exact issue. I tried booting into windows 7 in Safe mode. It fails to load and gives what i believe is the same blue screen. I used to be able to read and write files onto my old XP and Vista partitions. Now with windows 7, I seems that I can't.
I'm trying to get my music folder into something sensible. Right now, I have all my music stored in /home/foo so I have all of the albums soft linked to ~/music. I want the structure to be ~/music/<artist>/<album> I've got all of the symlinks into ~/music right now so I just need to get the symlinks into the proper structure. I'm trying to do this by delving into the symlinked album, getting the artist name with id3info. I can do this, but I can't seem to get it to work correctly.
for i in $( find -L $i -name "*.mp3" -printf "%h ") do echo "$i" #testing purposes
I'm trying to mv The Trance Mix 3 Wanderlust - DJ Exortius [TRANCE DEEP VOCAL TECH]@ into the real directory DJ Exortius. DJ Exortius already exists, so it's just a matter of moving it into the correct directory that's based on the id3 tag of the mp3 inside.
PS: I've tried easytag, but when I restructure the album, it moves it from /home/foo which is not what I want.
I want to use samba for file sharing like on a Windows home network. Actually they are all Linux machines but nfs is too complicated. On my host machine I installed samba and system-config-samba. I created a new share for /home, check marked writable and visible and put access to everybody. For preferences-->server settings--> security the "authentication mode" is set to user, encrypt passwords is no, and guest account is no guest account. Under preferences-->samba users I added myself as a user with the same windows user name as my Linux user name and the same password.
My client is a virtualbox fedora (used for testing purposes but actual clients will be real computers on my home network). I entered the address smb://192.168.1.184. When asked for the user name and password I put my regular user name and password since that was what I set in samba users. However, the password dialog keeps coming up and won't let met into my own computer. If I quit it says something like access is denied. How can I get my home network back? I liked this feature when my home computers ran XP but I switched them to Fedora 12.
I installed fedora core 10 on my pc & now i have been trying to install samba. I dont have a network so i mount and use my dvd for installation. I lack exotic package management tools like apt or yum yet the system-config-packages tool does not make sense either. so am stuck with the rpm -ivh [package] command.
The issue however is that this command returns querries about missing dependencies when I attempt to install. So is there a way (switch) i can add to tell the rpm command to automatically check and solve these dependecies using the Packages folder on my mounted dvd? - because i believe all these dependencies are on the dvd.