LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-25-2006, 12:55 PM   #1
buzzybee73
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
Unhappy Trouble accesing SAMBA from XP


Ok People,
I am a bit of a noob, and I apologize if this is posted in the wrong place, or the question I am about to ask seems a bit retarded, but I've peen pulling hair out for days now!

Ok, I've recently installed FC5 on one of my machines on my wired LAN network (2 XP pc's, 1 XP laptop (wireless), and 1 Linux (FC5) all connected through a D-Link Welles LAN router

Ive set up samba correctly (I think) because I can access my other computer's files from my Linux box, and it can connect to the internet aswell, but when I go to "My Network Places" on any of my XP machines, is shows "SAMBA Server", and when I click on it, it requests a username and password.

I've tried everything!
on the logon screen it says in the the bottom left something like C0880A3.tipt.aol.com, I tried putting that in with \DOM and that didnt work either.

It wont accept my regular logon name and password, im just a bit confused.

One other request...
One of the uses of this linux box is to be a file server, I've tried connecting a 160G Hard drive to it via usb, but "it cant mount ntsc formats" does this mean I have to wipe it and re-format in something like FAT32, or is there another way.

Any helpful replies would be greatly appreciated,

Dom
 
Old 11-25-2006, 01:19 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to read the 1st chapter in "Samba 3 by Example". It may be available in the "samba-doc" package or the "samba" package itself.

Or look in the Samba website to download it.

They use the "force user=" and "force group=" options in their configuration.
Code:
[office]
comment = General Office Files
path = /data/officefiles
read only = No
force user = abmas
force group = office
guest ok = Yes
ntacl support = No
The public shares were created like this:
root# mkdir -p /data/{ftmfiles,officefiles/{letters,invitations,misc}}
root# chown -R abmas:office /data
root# chmod -R ug+rwxs,o-w,o+rx /data

When a person logs in, a username/password dialog pops up but Samba ignores them for the share.

----

postscript: After posting this message, I read through the man smb.conf page and their descriptio n says that the user must give a valid username/password. I haven't done it this way, so I don't know which is right.

Last edited by jschiwal; 11-25-2006 at 01:25 PM.
 
Old 11-25-2006, 11:34 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I missed the second part of your question about the NTFS drive. Linux can't write to NTFS drives, so you would be better off reformatting it to a native linux filesystem such as ext3. The fat32 format can be written to but the ownership and permissions are set during mounting for the entire drive, to that wouldn't be a good choice either.

You might consider using samba swat to configure the server. It is a web based configuration tool. Point the browser of the server to "http://localhost:901".
You do need to configure xinetd first to use it however.
Here is my /etc/xinet.d/swat file contents:
Code:
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/swat
        only_from       =  127.0.0.1 
        log_on_failure  += USERID
}

Also add the line:
swat 901/tcp
to your /etc/services file if this line doesn't already exist.

Then restart the xinetd daemon.
Code:
sudo killall -HUP xinetd
For security reasons, you could stop the swat service when you are finished, however it only works at the server (localhost) so it may not be too much of a concern. If this is a headless server, you could either enter the IP address of the station you want to work from, or ssh into the server and run "konqueror http://localhost:901"

If you still have a problem, you will need to post the Global and Share sections of your smb.conf file for anyone to provide much help.

Last edited by jschiwal; 11-26-2006 at 12:01 AM.
 
Old 11-26-2006, 12:53 AM   #4
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Rep: Reputation: 30
have you created a smb user?

root: smbpass -a <username>

just asking?

bm
 
  


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
SAMBA PDC + LDAP Authentication problem gokulnath Linux - Networking 2 02-17-2007 10:06 AM
Samba client authentication problem with konqueror (Only). sadha_123 Linux - Networking 0 03-13-2006 03:45 AM
Samba without authentication maginotjr Slackware 6 11-21-2005 05:07 PM
Samba Authentication Problem Sloppyunderfoot Linux - Networking 0 01-25-2005 10:51 AM
Samba Login/Authentication Problem kenchix1 Linux - Networking 5 10-22-2004 02:29 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:08 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