Click to See Complete Forum and Search --> : network
bikkr38
01-28-2003, 09:22 PM
I need someone to help me figure this samba thing out i've been to many web sites and can't figure this, I went to samba setup and config. site, it instructs me to copy the smb.conf file and give it a different name smbconf.org, but that doesn't work it won't let me write to file I believe enable permission to write to file, how do I do that, I have downloaded webmin and went to localhost site, but have a hard time figuring that out, swat, I type in localhost:901 and nothing, I can see what ver. of samba is running I can start samba when I go to one of my other pc's I can find my pc has my name and the samba sever 2.2.7 but cannot open it because it asks for a passwd, and i TYPE in every one I have set up and it would not connect. please some help I,ve been at this for weeks and getting tired. is there some settings I need to set in my windows network neighborhood, I have no problems with the network in windows.
michaelk
01-28-2003, 09:48 PM
You will need to be root to write to smb.conf. I am assuming that is it located in your /etc/ directory.
On a positive note your very close since you can see the linux PC on a windows PC. For access you will need to add a samba user that is the same name as one or your linux users.
as root
smbpasswd -a <username>
Enter a password when prompted.
Now when you connect on the windows side you need to be the same user as you created with smbpasswd. Use the the same password as above. You should be now connected to you linux box.
I personally don't use swat. I find it easier to modify the smb.conf file using a text editor. Your smb.conf file might require modification. It might be best if you posted it minus the comments for us to verify.
slapNUT
01-28-2003, 11:29 PM
I type in localhost:901 and nothing, What does that mean? When you type http://localhost:901 in the address bar of your browser you should get a login. You enter root and then root's password and you should go to the SWAT page from which you can completely configure samba.
Do you have samba-doc installed? If you do then type this:
mozilla `rpm -ql \`rpm -q samba-doc\`|grep index.html`
This should display the first page of Using Samba. You can replace mozilla with netscape, konqueror , links or lynx. Start reading... all the answers are there but it's a mighty task to find them.
Oops I almost forgot Bookmark that Using Samba page.
bikkr38
01-28-2003, 11:44 PM
yes that helped, here is what I have when I run smbclient
root # smbclient -L bob
added interface ip=xxx.xxx.x.xxx bcast=xxx.xxx.x.xxxGot a positive name query response from xxx.xxx.x.xxx ( xxx.xxx.x.xxx )
Password:
Domain=[MDKGROUP] OS=[Unix] Server=[Samba 2.2.7]
Sharename Type Comment
--------- ---- -------
print$ Disk
pdf-generator Printer PDF Generator (only valid users)
IPC$ IPC IPC Service (Samba Server 2.2.7)
ADMIN$ Disk IPC Service (Samba Server 2.2.7)
bikkr Disk Home Directories
Server Comment
--------- -------
BOB Samba Server 2.2.7
MIKE dell
Workgroup Master
--------- -------
MDKGROUP MIKE
nmask=255.255.255.0
can you tell me what this all means
is print$ my printer: that is my other problem I can't print when I am on linux, nor my other pc's I have to reboot to windows to be able to print from the network. mike is the other computer, and mdkgroup is the the workgroup I made on all 3 machines I have, use to have mshome as workgroup. and what is master-mike mean?
when I created a user with smbpasswd -a bikkr, and then used smbclient -L bikkr, it couldn't find it, so I typed in bob and that is what you see above. bob, and bikkr is what I used at the linux install, mike is another pc and I have a third that didn't show up, probable because that pc is shutdown, as I wrote this.
bikkr38
01-29-2003, 12:12 AM
yes I type that in the browser and nothing, gnome use to get me the google search page, I use kde now it tells error connecting could not connect to localhost:901, is there something missing in my samba files?
slapNUT
01-29-2003, 12:23 AM
is print$ my printer: No. If you have a printer setup it will look like this:
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[HOME] OS=[Unix] Server=[Samba 2.2.6pre2]
Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
print$ Disk
pdf-generator Printer PDF Generator (only valid users)
Deskjet-610CL Printer
Download File Disk
Mandrake-9.0 Disk Mandrake 9.0 RPMS
IPC$ IPC IPC Service (Samba Server 2.2.6pre2)
ADMIN$ Disk IPC Service (Samba Server 2.2.6pre2)
Server Comment
--------- -------
SPONGEBOB Samba Server 2.2.6pre2
Workgroup Master
--------- -------
HOME SPONGEBOB
[
and what is master-mike mean?
That can change depending on which computers in the workgroup are on.