can't access my windows pc from linux box: need password
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
can't access my windows pc from linux box: need password
I'm trying to access a folder on my Windows XP Pro PC from my FC2 PC, but konquerer says I need a password. I never specified a password when I shared this folder, but it asks for one anyway. I've tried using 'guest' and 'anonymous', but neither work.
At the moment your windows machines are configured to authenticate as Guests, so if your Guest account is disabled or doesn't have a password then you can not connect to them. There are two things you can do ]
1. You can Enable the Guest account and supply it with a password. Then when you try to loggin in from the network you would use the Guest account information.
or
2. Open up the mmc "Microsoft Managment Console" start..run...mmc. Once Concole is open go to File...Add/Remove Snap-in....click Add button....add in the Local Computer Policy snap-in. Once that is done look under Computer Information, Windows Settings, Security Settings, Local Policies, Security Options. Now scroll near the buttom and select: Network access: Sharing and security model for local accounts. Double click on it and change option from: Guest only - local users authenticate as Guest to Classic - local users authenticate as themselves. Now you can loggin as any user on the machine.
I would do the second one because you can then loggin as administrator and access hidden shares.
I tried both those options (setting up a guest account and changing that network policy) and I still can't access my windows folders. I can get to the share of 'drive_c,' but when I try to open any other folder (such as Program Files) I get asked for a username and password.
Plus, I have another problem, which is the opposite of my first problem. I can't access my linux box's shared folder from my WinXP PC.
Originally posted by onthos I tried both those options (setting up a guest account and changing that network policy) and I still can't access my windows folders. I can get to the share of 'drive_c,' but when I try to open any other folder (such as Program Files) I get asked for a username and password.
Plus, I have another problem, which is the opposite of my first problem. I can't access my linux box's shared folder from my WinXP PC.
maybe you could tell us exactly *how* you are trying to access your folders so we can figure out what you're doing wrong. as one of the mods here says, we're not mindreaders.
to access your linux shares, you need samba to be set up and configured properly (and running, of course). post your smb.conf and relevant details.
The way I am trying to access my networked computers from linux is through Konquerer using smb:/ in the address bar. That takes me to my local network. I advance to 'roomtwo' which is my workgroup, then to 'pc1' which is my windows pc. I can see four shares now: C$ | drive_c | print$ | SharedDocs . I can open up drive_c's contents, but when I try to go anywhere from there (Program Files is where I intend to go), it asks me for a username and password. Now, I've tried using my account/pw, administrator/pw, guest/pw, guest w/ no pw. Nothing works. The guest account is turned on right now, just in case you are wondering, and I changed a network policy as suggested by LinuxEL.
I'm pretty sure samba is up and running currently, but just in case, how do I check?
My smb.conf file is pretty long, would you like me to post it anyway?
I was instructed to run testparm, and this is the output:
[root@linpc onthos]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[shared]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = ROOMTWO
server string = Samba Server
security = SHARE
password server = None
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[shared]
comment = linbox shared files
path = /home/onthos/shared
read only = No
if you are accessing the root drive (C$) as an administrator, i would think you would then have access to everything beneath it. i'm a little unclear on your setup, though: is "drive_c" a folder name of a share, or what is that? normally i would think ProgramFiles would be on your actual C drive (C$). if it's a folder, double check to see that you have permissions set up right for it in windows (right click folder, go to "sharing," set permissions).
i always get "smb is not a registered protocol" when i try to use a browser, so i use xfsamba4 (only in xfce4, i think, but there's also the old gtk xfsamba), or else usually i just mount the share directly. there might be other dedicated programs too, so it might be worthwhile to test one of them (or another browser) on the slim chance that it is something to do with konqueror (probably not, but i'm just trying to cover all the bases here ).
you might also want to try mounting directly to see if that at least works. that could help pinpoint the problem. so for ex: you could create a directory in /mnt, calling it shares. then as root do:
mount -t smbfs //pc1/SharedDocs /mnt/shares -o username=<name>
or, if you wanted to mount the root partition (check in windows to make sure it's shared):
mount -t smbfs //pc1/C$ /mnt/shares -o username=<name>
using for <name> whatever is your account name in windows. then it should ask for a password, enter the account password, and see what happens. it should mount, and then you can cd into it and look around. at least then if it doesn't, you might get some error messages to help figure out the problem.
in your smb.conf, you might want to try changing "security = share" to "security = user" in the global section, and then adding a "valid users = <name>" to the [shared] section (where <name> is your windows account name). then restart samba. (i usually just do "killall smbd nmbd", then "/usr/sbin/smbd -D" and "/usr/sbin/nmbd -D" to restart, all as root, which should work regardless of distro).
everything else looks basically okay, except i don't know about those idmap uid/gids, they look like some permissions thing, but that string of numbers looks kind of weird to me (too lazy to read the man pages right now, sorry ). i would comment them out until it's working, then uncomment them back again if you think you need to. also add an "encrypt passwords = yes" and take out the "guest ok" line, both in the global section. i think it's probably just more secure that way, i.e., using user-level security rather than potentially opening the share to anyone. then do the stop/restart i mentioned above. gl, post back on your progress.
Last edited by synaptical; 03-19-2005 at 11:34 AM.
i'm not sure how fedora starts samba at boot. i think it follows the rc.d structure? check in /etc/rc.d for a samba script, which then should be started by one of your rc scripts (rc.M i think) and is probably just commented out. otherwise, sorry to say it, but RTM for fedora initializations, search LQ, or maybe someone who uses fedora can chime in.
Last edited by synaptical; 03-19-2005 at 12:24 PM.
Originally posted by synaptical it's working! hooray!
i'm not sure how fedora starts samba at boot. i think it follows the rc.d structure? check in /etc/rc.d for a samba script, which then should be started by one of your rc scripts (rc.M i think) and is probably just commented out. otherwise, sorry to say it, but RTM for fedora initializations, search LQ, or maybe someone who uses fedora can chime in.
There are 2 ways of configuring samba to start on boot-up , in text mode or a terminal type ntsysv and the Services utility will show up and then scroll down the list and then use the spacebar to select/deslect the option for smb.
The other way is through Gnome and the menu , System Settings --> Server Settings --> Services , scroll down the list and select smb , you can select smb to run for levels 3 & 5
Another way of checking to see if smb is running is to use at a terminal the command
chkconfig --list |grep smb
Another useful command to use to
smbclient -L localhost
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.