Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got samba up and running.
I can access my linux box from windows, but I'm unable to access my windows box from linux.
In Gnome, when I go to Places > Connect to Server, and select Windows Share and the correct address (I can ping my windows box OK) I get a window asking me for a password. My Samba password (=my normal user password, and has been passed to smbpasswd when adding myself as a user) will not work. What am I doing wrong here?
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
you are accessing the windows share that means you have to authenticate to the windows system that means you need to use the windows username and password of a user that has permission to access the windows share
... but if I use my normal XP user account name (and there's no password for the account) I can't get access. That leads me to think I should maybe have generated a specific user account for accessing XP in Samba.
Also, my windows share is not reflected in smb.conf. Could that be part of the trouble?
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
smb.conf if for the samba server. that means in that file you 'declare' all shares you want the linux server to share. samba can only share locally mounted fs's
if you are wonting to access a windows share that is purly a smb-client thing
if you are sure about not wanting a password on your windows account (i'll get back to that in a bit) use the smbmount command or mount -t smbfs
read the man page for detailed info on the command, but mainly you are looking for the option -o, example:
mount -t smbfs -o username='foo',password='bar' //server/share /path/to/mountpoint
in your case
mount -t smbfs -o username='foo',password='' //server/share /path/to/mountpoint
if you want mount to promt for a password (which is better actually):
mount -t smbfs -o username=foo,password //server/share /path/to/mountpoint
now to running a windows account with no password:
viruses and other unwanted stuff (trojans, etc) are able to find out what usernames are available on a windows system. trying those usernames agains no password is a common thing as a lot of people dont bother setting up one saying 'oh, i am the only one using it!' - thats what you think!
once test agains no password and the system has granted permission -boom- that was it! system infected!
using your suggested mount command structure I simply get the mount help message. Man mount tells me
Quote:
Mount options for smbfs
Just like nfs, the smbfs implementation expects a binary argument (a
struct smb_mount_data) to the mount system call. This argument is con-
structed by smbmount(8) and the current version of mount (2.12) does
not know anything about smbfs.
and man smbfs doesn't exist on my system!?
As a matter of fact it isn't even installed!
My fist attempt at accessing my windows share was through a GUI (as I explained at the beginning of my post)
If, using Gnome, I go to Places > Connect to Server and select Browse Network, my windows PC shows up with its name. If I then try to access this box, I get the same login window again and no combinateion of known usernames and passwords will let me connect to the windows box...
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
then try using smbclient to connect to your windows share.
i am asking you to use other tools to find out where the problem might lie - just in case you should be wondering.
if you also set the windows share password to a space or somethign other than 'no password' would it then work?
It's taken a while to get my XP box on line again, but I've figured out what the problem was! I didn't set anything to share on my XP box, so the XP firewall was blocking all access. Once I configured XP properly I could access it from my linux box without any problem.
absolutely right. It's quite often the stupidest and smallest details we overlook. The thing is I've read quite a bit about using samba, but all of it from a linux pint of view and usually that doesn't include anything even remotely related to whatever you may have to do on a windows box to make it work . This isn't a windows forum, but sometimes these little 'details' - like "make sure you allow your windows box to share" would be very welcome for a linux user as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.