Help Needed With Autofs (PRETTY PLEASE W/ A CHERRY ON TOP)
#1
I am following THIS tutorial on setting up Autofs but seem to be having issues.

Any help would be GREATLY appreciated.

I'm trying to access shares on XPS @ 192.168.3.11 (Windows 7 / 64 bit PC). Here is my info:

Here is my Hosts file:
Code:
127.0.0.1       localhost
127.0.1.1       XBMCLive
[b][color=green]192.168.3.11    XPS[/color][/b]

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I did the next steps but everything was already up to date:
Code:
sudo apt-get install smbclient
sudo apt-get install smbfs
sudo apt-get install

Here is my /etc/auto.master with the comments removed:
Code:
+auto.master

/smb    /etc/auto.smb --timeout=60

Here is my /etc/auto.smb.XPS:
Code:
username=Craig
password=mysupersecretpassoword


When I restart autofs (sudo service autofs restart) I get this:
Code:
autofs start/running, process 1897

So now according to the tutorial I should be able to access the shares by going to /smb/XPS/. When I do that, I don't get anything. I get:
Code:
ls: cannot access /smb/XPS/: No such file or directory

Other information worth mentioning:
The tutorial mentions removing data from the sources.xml, passwords.xml, and mediasources.xml. I did that too.

I installed Autofs and made these changes above. Is there some other configuration in Autofs I missed?

Thanks in advance for any help. I know the post was quite lengthy but I thought it would be best to be thorough.
Reply
#2
Try running this command:
Code:
smbclient -U username -L computername
After prompting for the password it should list available SMB shares.

If it prints "session setup failed: SUCCESS - 0"
then you need to uninstall "Windows Live Sign-In Assistant" (via control panel > uninstall a program)

After that you will be able to access Windows shares.

Don't ask me why this is like that. I found this information on the Internet and confirmed this solution in my setup.

more info

BTW, the original tutorial is here.
Reply
#3
Thanks shturm.

I saw several other posts before trying to use Autofs where people were having issues accessing SMB shares on their Windows 7 PCs. I tried MANY different things but never uninstalled.

I did do that today, after your post, and was still met with session setup failed: SUCCESS - 0.

When I get more time I'll try and follow the additional links you sent in hopes of uncovering something.

Thanks for the help.
Reply
#4
Another missing piece of this puzzle may be slightly customized /etc/auto.smb script :

Code:
#!/bin/bash

# This file must be executable to work! chmod 755!

key="$1"

for P in /bin /sbin /usr/bin /usr/sbin
do
        if [ -x $P/smbclient ]
        then
                SMBCLIENT=$P/smbclient
                break
        fi
done

[ -x $SMBCLIENT ] || exit 1

# Note: create a cred file for each windows/Samba-Server in your network
#       which requires password authentification.  The file should contain
#       exactly two lines:
#          username=user
#          password=*****
#       Please don't use blank spaces to separate the equal sign from the
#       user account name or password.

credfile="/etc/auto.smb.$key"

opts="-fstype=cifs,file_mode=0644,dir_mode=0755,iocharset=utf8"

smbopts=""
if [ -e $credfile ]; then
        opts="$opts,credentials=$credfile"
        smbopts="-A $credfile"
else
        smbopts="-N"
fi

$SMBCLIENT $smbopts -gL $key 2>/dev/null | awk -v key="$key" -v opts="$opts" -F'|' -- '
        BEGIN   { ORS=""; first=1 }
        /Disk/  {
                  if (first)
                        print opts; first=0
                  dir = $2
                  loc = $2
                  # Enclose mount dir and location in quotes
                  # Double quote "$" in location as it is special
                  gsub(/\$$/, "\\$", loc);
                  print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
                }
        END     { if (!first) print "\n"; else exit 1 }
        '

Please try it out (don't forget to restart autofs)
Reply
#5
Sadly, no luck. I logged in remotely, changed the auto.smb and restarted autofs. Same result when I used smbclient.

I think I read somewhere that this was a certificate issue with Samba actually. Do you know if the latest release fixes this problem? I've updated but the problem still hangs.

I've got a Windows Home Media Server coming soon, so hopefully my problems with smb will go away. I seem to be able to access the share on a XP box without issue.

Live Essentials and Live Sync are removed and the Windows 7 box was rebooted.

I REALLY appreciate the help. I'll dig through the links you provided in a previous post and hope to come across something.
Reply
#6
Please confirm that you no longer have "Windows Live Sign-In Assistant" installed.

I'm afraid I will not be able to further help you with this issue, as I no longer can reproduce it in my setup. After I uninstalled "Windows Live Sign-In Assistant" everything worked for me.
Reply
#7
It's cool. I understand. I appreciate your time. I'll post an update when I find a resolution.
Reply
#8
It is asking me for a CIFS Sign in ID and a PasswordHuh?Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Help Needed With Autofs (PRETTY PLEASE W/ A CHERRY ON TOP)0