My samba from windows to linux share works fine, but how to get it working other way around? I see every windows machine from network:/// but when I double click them, it asks some weird password and username. I haven’t set any passwords on windows machines.
The problem you are encountering is a M$ special. Meaning, the problem lies within Windows, and not within Linux. You didn’t configure passwords in windows, but you probably didn’t configure it to be an open connection either. There are steps you need to take to share resources without using a user name/password in Windows. This is true if your using Windows To Windows, or Linux to Windows.
Samba is encountering the built in Windows security(if you can call it that), and is honoring the request for a password. You will need to configure your windows box to share the resources with guest access(no password), so you do not have to enter a password, you will also need to ensure the permissions are set for guest access as well… Your other option would be to type in the user name that owns the share, and leave the password blank(if you haven’t set a password) or, if you have set a password, use that password.
On a side note, I would strongly recommend using passwords in your network shares, if your network is connected to the Internet or has wireless access, you are placing your files, and therefor your personal information at risk. Network security is easy to setup, and can be allowed to “remember” passwords, that way you don’t have to enter them. However, if someone compromises your network, the password will be needed for them to access your files. If you are against passwords all together, you can also use key files, IP restrictions, or MAC restrictions.
I have tried typing my user and no password but it doesn’t let me in. How to set this with guest account? Is there something I need to add in smb.conf?
I have very strong security in my wireless connection, so this is not a security issue. I just want this to work. I don’t use any passwords on windows machines.
I have 3 windows machines, and one linux machine. I can access my linux shares from windows machines, but not the other way around. I just can’t view anything from the network:/// location of my linux computer. Just as I explained: I see every pc, but it doesn’t let me in without a password (with my regular windows username). Can the username/password check be disabled? If yes, how?
This is something that has to be set on each windows machine, it has nothing to do with smb.conf or any other settings on the linux machine.
I’m not familiar with Win 7 yet so I can’t give you the step by step process, but I’m sure if you google you can get plenty of hits on “how-to” guides for setting up network access to Win 7 machines. Probably windows help itself would tell you what to do. I use Vista and just opened windows help, typed in “networking”, and got plenty of information on the topic. No doubt Win 7 will be as helpful.
>
> I think I’m repeating myself, sorry for that, but what exactly I need to
> set/configure/whatever in Windows?
>
>
rollex2;
Last night I posted this in response to another thread in which the OP was
having difficulty connecting to a Windows 7 Machine from Samba.
[quote=P.V.]
We have had a few Windows 7 members on our domain, but as yet we had not tried
to share from Win7. However, tonight I was able to lay my hands on a Windows
Seven machine and test sharing from Windows 7.
The encryption just refers to NTLM, leave it at the default.
You may choose to use a password or not. I will comment on that choice
later.
For the directory/file you want to share:
a. Right click
b. Choose properties
c. Select the Sharing tab
d. Select advanced sharing
e. assign a name
f. select Permissions
g. assign appropriate permissions to the EveryOne group
h. backout and you’re done
To access the shares from dolphin
a. With passwords
i. Enter smb://<win7 machine name or IP>/
ii. When requested to authenticate enter the <username>:<password>
of valid WINDOWS 7 USER.
b. With no password
i. There seemed to be some difference between the very first try
and all subsequent tries.
ii. Initially I needed to use: smb:\<Windows 7 name>/<share name>
iii. Subsequent attempts required only: smb:\<windows 7 name>/
iv. There was some delay in step (iii) it is possible that this
would
have worked initially had I just waited long enough.
c. Do not try to access the X$ shares (X=C,D,E etc) these are special.
The above rules for dolphin also work for FF and Konqueror. No other browsers
were checked.
[quote]
I also added in a subsequent post, that in the securities tab of the
properties (step 3), I gave the “Everyone” group appropriate permissions.
Thanks for your efforts. It seems it indeed is different in gnome. I tried your tutorial. Since I don’t have dolphin, I have to use gnome’s nautilus, and it still asks for password and doesn’t let me in with password empty (even the smb://hostname\sharename). I guess I should try to create password for my windows account… but what if it doesn’t help either?
Btw, I didn’t understand this:
The encryption just refers to NTLM, leave it at the default.
>
> venzkep;2087860 Wrote:
>> This was NOT checked with gnome. It would be very surprising if gnome
>> worked
>> differently from KDE4.
>
> Thanks for your efforts. It seems it indeed is different in gnome. I
> tried your tutorial. Since I don’t have dolphin, I have to use gnome’s
> nautilus, and it still asks for password and doesn’t let me in with
> password empty (even the smb://hostname\sharename). I guess I should try
> to create password for my windows account… but what if it doesn’t help
> either?
>
> Btw, I didn’t understand this:
>> 1. The encryption just refers to NTLM, leave it at the default.
>
>
rollex2;