I am aware tons of threads have been written about this topic. I have read lots of them, but still stuck in the same point. No sharing at all between laptop and desktop; and inside laptop, I am even unable to mount laptop's shared directories.
Using Nautilus, go to Places -> Network -> Windows Shares on.. -> Workgroup (Plats in my case). When I see workgroup, sometimes both machines are shown, sometimes just one... and not always the machine I am using, which keeps me surprised. Anyway, when I try to access something shown in the machine that appears as shared, then user and password are required; I type them and then a dialog is displayed that says: Cannot mount Windows Share. It doesn't matter what I choose regarding what to do with the password (remember or not).
Info I guess can be interesting:
-Updated-to-day Lucid in all machines
-Static IP addressing. DNS resolver is far of my knowledge, so I left it as is stated in smb.conf by default: commented (, with this order -> lmhosts host wins bcast
-I have chosen to use Classic share method instead of Nautilus Share or Personal File Sharing with apache. Got samba from repositories, and edited smb.conf by hand. I used smbpasswd to add my username. User exists already in both machines, with the same password. I really want security = user and not share; a bit maniac here.
-Both machines in the same Workgroup (Plats). Netbios name used in smb.conf just in case it was necessary, but it isn't shown with testparm -s. In fact, there's some uncommented info in smb.conf that testparm -s doesn't show.
-smb.conf looks like this:
-Smbtree command shows:
root@LaFoss:/media/PENYA/LAN Share Area# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[LAN Share Area]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
workgroup = PLATS
server string = laptop
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
browsable = No
comment = Printer Drivers
path = /var/lib/samba/printers
[LAN Share Area]
comment = LAN Share Area
path = /media/PENYA/LAN\ Share\ Area/
valid users = vic
read only = No
create mask = 0755
guest ok = No
-With usershare command:
\\LAFOSS\print$ Printer Drivers
\\LAFOSS\LAN Share Area LAN Share Area
\\LAFOSS\IPC$ IPC Service (laptop)
I guess this confirms I am not sharing anything through nautilus-share, which is what I want as I read is not a good idea to use several ways of sharing at the same time with the same directories..
#net usershare info --long
-Both machines have the same user, vic, and this user belongs to samba group. I don't know if here uppercase or lowercase matters, so I've used always lowercase. Same with workgroup and netbios name.
-This user has been entered to samba through
-smbusers file exists, and has the following:
sudo smbpasswd -L -a vic
This is for a third machine running WinXP that my parents own... but still never tried if this function at all.
vic = Vic, vic
-Permissions on shared directory looks like this:
-Directory is owned by root; trying
drwxrwxrwx 1 root root 0 2011-06-19 13:06 LAN Share Area
has no effect. Anyway, I don't know if this matters at all, I've read owning shared directory helps...
root@LaFoss:/media/PENYA/LAN Share Area# chown vicent /media/PENYA/LAN\ Share\ Area
-I have not tried to mount directory using fstab o something like that... first I should be able to manually mount my own shared directories, shouldn't I?
If more information is required, please tell me. Any help will be appreciated, I don't know what to do now.
Thanks in advance