Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
6/22/2008 6:42:38 PM EDT
I have a Windows XP machine and another machine running Ubuntu.  When I’m on the Ubuntu machine I can see and use the shared drive on the XP machine.  From the XP machine when I connect to the Ubuntu machine, it asks for the user and password but acts like the password is wrong.  The sign on screen returns with the computer name inserted in front of the user name (Winxp/User name)

What am I doing wrong?
6/22/2008 7:42:13 PM EDT
[#1]
domain name?
6/22/2008 7:57:09 PM EDT
[#2]
You need to enable guest access to Ubuntu and create an accessible share (just to keep it simple).

Simple /etc/samba/smb.conf


[global]
  log file = /var/log/samba/samba-log.%m
  lock directory = /var/lock/samba
  share modes = yes
  public = yes
  netbios name = Ubuntu
  guest account = nobody
  invalid users = root
  bind interfaces only = true
  security = SHARE
  workgroup = Home
  dns proxy = no
  name resolve order = wins lmhosts host bcast
  encrypt passwords = true
  passdb backend = tdbsam
  obey pam restrictions = yes
  socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=32768 SO_RCVBUF=32768


[misc]
       comment = Misc
       writable = yes
       locking = no
       path = /home/misc
       public = yes



run the commands as root

mv /etc/samba/smb.conf /etc/samba/smb.conf.back
nano /etc/samba/smb.conf
<paste in the above>
mkdir /home/misc
chmod 777 /home/misc
/etc/init.d/samba restart


-Foxxz
6/22/2008 8:05:39 PM EDT
[#3]
Foxxz, I didn't add this part before because I didn't think it mattered.

I also have Ubuntu on a 3rd computer (laptop).   I had all 3 on the network and had no problem sharing files between the 2 Ubuntu machines.  So I'm thinking I have everything setup correctly although I just created the folders and shared them without entering any commands.

Hell, maybe I'll run the stuff you posted anyway.
6/22/2008 8:57:46 PM EDT
[#4]

Quoted:
Hell, maybe I'll run the stuff you posted anyway.


You're going to want to do this if you want a foundation for your Windows box communicating with your Linux machines.
6/23/2008 7:04:47 PM EDT
[#5]
I'm a Debian guy which means I'm used to doing everything manually with no funny GUI doing my configuration. I have used Ubuntu on a limited basis so you may have a tool to set it up I've never used.

The config I posted works for my home network and I am able to have a share that both windows and linux can utilize. My config just assumes guest access and is not based on users or passwords at all. If for some reason you are asked for authentication the username is usually guest with no password.

On linux sometimes I've had to mount shares up with

mount -t smbfs //computer/share /mnt -ousername=guest

and if it prompt for a passwd just hit enter. But I know there are Ubuntu tools for browsing shares like you do in windows. Again, I'm old fashioned. Alot of my experience is using linux for servers and network services where we are concerned about stability and uptime and not about GUIs nobody will ever see. So I am not a linux desktop user.

-Foxxz