Hi I’m a total to noob to Linux, spent all day trying to find an answer and hate having to give in and ask for help, the good news I have seemed to get Samba working on opensuse 11. Not sure how I did it just got lucky.
I can see the XP home machine from my suse desktop and access the shared files on there.
I can see the shared files on my suse machine from my xp home machine but when I click on them xp is asking me for a user name and password.
Everything combination of everything I’ve ever used on XP gets knocked back. Have even tried my suse uname and pword
I’ve looked through these forums and can’t see any answers. Having looked around the net I’ve seen a site for Asus Eee users has a thread saying the same.
Sounds to me like you need to add a user to the Samba user database and supply those credentials to Suse from xp when you try to enter the Suse shares (if asked). There would be something on that in the link Havoc65 supplied
If its on your home network and security is not a big concern, i would forget about passwords completely:
Global portion of /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
security = share
netbios name = YOUR_MACHINE_NAME
server string = Server Description
example share in /etc/samba/smb.conf
[share name]
comment = Description of your share
path = Path to your shared folder (for example: /srv/samba)
read only = no
writable = yes
browseable = yes
guest ok = yes
If youre not sure what youre doing remember to backup smb.conf before you mess with (cp /etc/samba/smb.conf /etc/samba/smb.conf_backup). And remember to restart samba after you edited the config file (/etc/init.d/smb restart)
If you want writable (ability to copy files to that share and delete stuff from it) just chmod 777 /shared/folder
Just remember that its not secure way to do this. It gets the job done easily if you just want to throw simple samba server on your local network and get files shared.
If other people see your samba server, forget this post completely
Thanks guys, yeah adding user to samba database is all I needed to do. Should have read a little bit further through swerdnas tutorial. Too much coffee and too little patience scuppered me yesterday.
Say the folder you were attempting to access from windows was called testshare.
Goto the folder containing testshare on the linuxpc.
Right click the folder and scroll down to sharing options.
When the folder sharing window opens you should see that there are three check boxes. At present only Share this folder and possibly Allow other people to write in this folder are ticked.
All you need do is tick the third box Guest access (for people without a user account) and click on create share.
If your using Nautilus you will be asked about adding permissions, do so. You may be asked if browsing some other way, I dont know this is my second day on Linux. Hence really long-winded explaination.
The windows machine that was being asked for uname and pword should now let you access with no fuss.
If it don’t work log out and back in again on both machines (typical tech support answer I know) failing that scream and shout at your network again and keep searching the forums.
Thinking on this may be the case for even a linux only network. If so the above will still work. But use the link to swerdnas site in one of the above posts and you can find out how to set up access to shares by setting up username and passwords.
My network is at home and all pcs are used by me only so password protected network access isn’t a priority. Using swerdnas method to create user accounts is secure and was really easy to do also.