LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2004, 09:04 PM   #1
dhatcher2
LQ Newbie
 
Registered: Oct 2004
Location: Ohio, USA
Posts: 17

Rep: Reputation: 0
Accessing Samba FROM Windows XP box


I have Samba 3.0.7 installed and operating on my Feather 0.6.0 laptop. My server is a Windows XP box. I can access both Windows boxes (servers and another client) from my Samba laptop and move files around just fine. When I go to a Windows box and click Network Neighborhood, I can not even see Samba laptop. If I click on view network connections, I can see an icon for "Samba 3.0.7 (Debian)", however; if I click on it I have no access. I have tried changing my smb.conf file to "yes and no" for encrypt passwords - to no avail. Anyone got any ideas what I might have missed. I did perform adduser in console, added the two windows boxes and assigned them passwords. I have gone back and added these users and passwords in my samba password file (not sure the name of the file, but it is in the samba directory). It does not seem to matter what I do, I can not access the Samba laptop from a Windows box. If you have a suggestion that may be beyond my meager Linux experience - please put it in basic terms. I can get around okay, but am still fairly "Linux Stupid", I know just enough to screw stuff up, lol.
 
Old 11-02-2004, 10:29 PM   #2
milesstandish
Member
 
Registered: Sep 2002
Posts: 70

Rep: Reputation: 15
well... i don't use deb, but i have played around w/ samba a pretty fair bit. somethings that i tend to overlook often are making sure the smb.conf file has the correct workgroup and i usually add the ip range to the allow list (w/ just 192.168.) and sometimes for added measure i will add the actual machine names. but then again, i am in pretty much the same boat right now cause i can see my samba server but i get "don't have permission to access" or some such nonsense... i don't know, i'm hoping that its just a result of the last round of updates, cause i sure can't think of anything else to do or change.
 
Old 11-04-2004, 04:27 PM   #3
gburch
LQ Newbie
 
Registered: Apr 2004
Location: Sheffield, UK
Distribution: Debian Sarge
Posts: 13

Rep: Reputation: 0
When you say that you have no access, can you elaborate a little. Do you get any error message, or does nothing happen, or do you just not see any shares?
 
Old 11-04-2004, 06:02 PM   #4
dhatcher2
LQ Newbie
 
Registered: Oct 2004
Location: Ohio, USA
Posts: 17

Original Poster
Rep: Reputation: 0
I see no shares from the XP Box under "network neighborhood". In XP, while you are in network neighborhood there is an option on the left side on the window that says "view network connections". If I click on that I see Samba (Debian). If I click on that I get a message that says that I have no permission to access Samba, please contact system administrator. I can move files all around between XP and Samba from my Samba laptop, just not from the XP box.
 
Old 11-04-2004, 10:15 PM   #5
Wordan
Member
 
Registered: Aug 2003
Distribution: Debian
Posts: 53

Rep: Reputation: 15
probably already thought of this but:
does the share directory have the proper execute permisions?

Last edited by Wordan; 11-04-2004 at 10:19 PM.
 
Old 11-05-2004, 07:24 AM   #6
dhatcher2
LQ Newbie
 
Registered: Oct 2004
Location: Ohio, USA
Posts: 17

Original Poster
Rep: Reputation: 0
I am not sure, I checked everything to grant every permission that I could. It also does not matter if I encrypt passwords or not, it does not allow access from XP box either way.

One question - when I set up Samba, it asked to "adduser" which I did for each of my other computers (by name of computer) was this for network access or for those users to be able to log onto my Linux Laptop? If it was for Linux access then I have no users assigned to the Samba for networking and that could be my problem. My /etc/samba/smbpassword file is blank, there are no passwords in there at all. That is why I am starting to think that "adduser" is just to give a logon to the Linux computer NOT permit network access.

If that is the case, how do I assign names and passwords for access to samba from other computers?
 
Old 11-05-2004, 08:10 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There MUST be a user in the smbpasswd file and a MATCHING Unix system user. The smbpasswd file performs authentication, the unix system user determines the access permissions of the user to read/write files and other resources. Use smbpasswd to add samba users matching the unix accounts and try to log in using those usernames and passwords. The unix password, if they will only be using samba, is irrelevant, and I find it best to disallow shell access to those accounts (unless, obviously, they also use shell).
 
Old 11-05-2004, 09:16 AM   #8
dhatcher2
LQ Newbie
 
Registered: Oct 2004
Location: Ohio, USA
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Matir
There MUST be a user in the smbpasswd file and a MATCHING Unix system user.
Can I just edit the smbpasswd file with my editor and add users. What is the format that I use. For Example:

User1 = &&&&, where User1 is the user name and &&&& is the password, would that work? I assigned my Windows computers names and passwords when I set up Samba, do I use those names and passwords? I am fairly new to Linux and fairly stupid still.
 
Old 11-05-2004, 09:23 AM   #9
Wordan
Member
 
Registered: Aug 2003
Distribution: Debian
Posts: 53

Rep: Reputation: 15
smbpasswd --help reveals the answer

smbpasswd -a joe

-a is for add user. it will ask for a password to assign to joe.

If you use the same username/password on the server and on the client, you wont have to type in your samba password every time you waant to connect to a share.

Last edited by Wordan; 11-05-2004 at 09:28 AM.
 
Old 11-05-2004, 06:04 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
the smbpasswd file, I believe, varies from version to version... I only know what the first 3 fields indicate

SMBUSERNAME:UNIXUID:PASSWORDHASH:OTHER:OTHER

If anyone knows what the last two fields are, it might be interesting.

In any case, the smbpasswd program must be used to edit it correctly, i believe.
 
Old 11-06-2004, 08:47 AM   #11
dhatcher2
LQ Newbie
 
Registered: Oct 2004
Location: Ohio, USA
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Wordan
smbpasswd --help reveals the answer

smbpasswd -a joe

-a is for add user. it will ask for a password to assign to joe.

If you use the same username/password on the server and on the client, you wont have to type in your samba password every time you waant to connect to a share.
This fixed my problem beautifully, thank you so much. I have full access to all computers now from any station in the network. I really appreciate you folks taking the time to help others. This was great! Thanks again.
 
Old 11-06-2004, 10:31 AM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Maybe one day you'll be able to help others as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing my linux box by name on the LAN (from Windows) malbery Linux - Networking 2 12-07-2004 05:42 AM
Accessing a printer on a windows XP machine from my Linux box drebbin Linux - Newbie 2 09-20-2004 02:39 PM
SuSe: Need Help Accessing a Windows Box on Network! dr00t Linux - Networking 3 08-20-2004 08:45 PM
accessing a windows box from linux Ůmegaflops Linux - Networking 3 07-26-2002 01:20 AM
Accessing Redhat box from Windows Network ppuddick Linux - Networking 9 07-01-2002 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration