(SOLVED kinda) samba wont let windows into my linux shares
ok im pulling out my hair
i had suse 10.0 installed i tried ubuntu hated it it wiped the partitons before it instaled i wiped the partitions again to make sure ubuntu was gone i installed suse 10.0 again thought it would update to 10.1 at update stage but nevermind i set it up same as i did last time now i can access my windows shares on linux but heres my problem; if i go to \\linux or even through my network places i see a list of shares but if i try to access the ones with the same name as the old ones it says access denied (ok the dialog is more detailed then that but its the standard incorrect password type thing) now if access any of them with new names it brings up the user name password dialogue i type my linux login details (the same as i did before the ubuntu disaster) and well computer says no i have the samba user authentication set to smbpasswd file with the value of my password i really dont know what else to do i have googled till my fingers bleed and cant find the solution 3:36 am still cant access the shared folders please any help rould be appreciated |
IMO, this may the case of missing owner. check for the owner/group of those shares. If it shows numbers instead of name, change the owner to current user by doing
Code:
chown -R username: dir_name |
still cant access them
i have no idea how to check the owner of a folder but i created a new folder and chowned it to me (i assume it would be any way) put one of the share folders is my folder in home so i assume thats owned by me by default? i keep going through the samba server settings hoping i`ll find something i`ve missed but im truely at a loss my smb.conf file (though i edit it with yast) of course i edited the password Code:
# smb.conf is the main Samba configuration file. You find a full commented smbusers file Code:
# This file allows you to map usernames from the clients to the server. the error i get on a windows pc when i try to access the share is Quote:
this is truely driving me nuts please help |
Does it work if you change the security level to share (i.e. "security = share " in your global section)? I think that is what works for me. Check the SAMBA documentation, as it does give explanations of the different security levels IIRC. Remember that you'll need to restart the server after you've made changes to your smb.conf.
|
hmmm didnt work im afraid ... i definatly feel its a password issue as the shares that were set up and have password saved on the windows pc just say access is denied the others come up with the above error or when set to share in security just ask me for the password again and again and again and again
i opened my smbpasswd file as root and was surprised at the content Code:
# This file is the authentication source for Samba if 'passdb backend' is set i updated to the latest stable samba release 3.0.22-17.1.28 still no go theres gotta be a solution |
http://tr.samba.org/samba/docs/man/smbpasswd.8.html
ok using that webpage i typed ; Code:
Failed to find entry for user mrgreaper. but its still no go !!!!!!!!!!!!!!! arghhhhhhhhhhhhhhhh all i have done since i got up is google samba read about how to use it normally in language above my linux cpabilitie now one thing i came across said you can make samba just allow certain hosts the example i believe was host = 192.168.1.0/22 172.168.2.0/22 and there was a deny host line of 0.0.0.0/0 but cant renember that so what i`d like to do if possible ; 1 remove the password entirely i`m happy that anyone on my network can access my windows shares so why not my linux ones 2 to make it a bit securer then i`d like to use the the host option and allow a range between 192.168.1.50 - to 192.168.1.200 shows how secure windows(edit i ment linux) is i guess as i cant even access my own filesacross the network :( ok i admit defeat and throw my self at your merci i cant find info to help me im gonna try to remove samba completely then reinstall it (the standard windows user approach) i cant think of anything else! HELP!!! it would apear deleting samba is not an option :( ummm i may of typed this before but hell i`ll type it again HEEEEELP! please i`ve posted for help on samba`s irc thing not sure i have done it right or not irc seems to be a chat programme but i posted the prob and a link to this page but i dont think it even posted right :( this is gonna be the death of me im sure of it i just dont understand whats wrong |
ok my problem is solved ...well work arounded
so it may help others here is a duplicate of the samba irc forum thing Quote:
i added Code:
hosts allow = 127.0.0.1 192.168.1.50/99 and now all my shares work ith out asking me for password (same as the windows ones) the ; hosts allow = 127.0.0.1 192.168.1.50/99 hosts deny = 0.0.0.0/0 mean that only ips in the alow range can see and use the samba shares so if someone wanted to use my files they would physicly have to be in my flat (i think i may notice them) though as i have said before i have no enemys so i doubt anyone would want to try |
All times are GMT -5. The time now is 12:08 PM. |