FedoraThis forum is for the discussion of the Fedora Project.
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.
What do these get you? (press enter when prompted for password)
smbclient -L <nameofwindowscomputer>
Mine:
[glenn@toshiba ~]$ smbclient -L dad
Password:
Anonymous login successful
Domain=[JOHNSON] OS=[Unix] Server=[Samba 3.0.27a-0.fc8]
Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
temp Disk Public Stuff
IPC$ IPC IPC Service (Samba Server Version 3.0.27a-0.fc8)
Anonymous login successful
Domain=[JOHNSON] OS=[Unix] Server=[Samba 3.0.27a-0.fc8]
Server Comment
--------- -------
DAD Samba Server Version 3.0.27a-0.fc8
LONGBOTTOM Neville's Old Computer
TOSHIBA Samba Server Version 3.0.28-0.fc8
Workgroup Master
--------- -------
JOHNSON DAD
smbtree
Mine:
[glenn@toshiba ~]$ smbtree
Password:
JOHNSON
\\TOSHIBA Samba Server Version 3.0.28-0.fc8
\\TOSHIBA\IPC$ IPC Service (Samba Server Version 3.0.28-0.fc8)
\\TOSHIBA\temp Public Stuff
\\LONGBOTTOM Neville's Old Computer
\\LONGBOTTOM\C$ Default share
\\LONGBOTTOM\ADMIN$ Remote Admin
\\LONGBOTTOM\temp
\\LONGBOTTOM\My Pictures
\\LONGBOTTOM\D
\\LONGBOTTOM\C
\\LONGBOTTOM\D$ Default share
\\LONGBOTTOM\IPC$ Remote IPC
\\LONGBOTTOM\My Documents
\\DAD Samba Server Version 3.0.27a-0.fc8
\\DAD\IPC$ IPC Service (Samba Server Version 3.0.27a-0.fc8)
\\DAD\temp Public Stuff
\\DAD\homes Home Directories
I assume that cyclone is the Windows box? Please post the output of rpm -q samba, chkconfig --list smb and chkconfig --list nmb . Also, have you done any editing to /etc/samba/smb.conf? Are you positive that the Windows folder is shared?
Check the "workgroup = " line in your smb.conf file. You may not have changed it from the default.
Also, check the samba log. It may give a non-generic error message pinpointing the problem.
Each one of those commands were meant to be run one at a time. If samba is not installed then install it with yum install samba. Afterwards, as jschiwal says, edit the workgroup line in /etc/samba/smb.conf. It needs to reflect the name of your workgroup. Then chkconfig --level 35 smb on and chkconfig --level 35 nmb on. Now browse for your windows share. smbtree should also show cyclone.
and smbtree
[cuda@localhost ~]$ smbtree
Password:
WORKGROUP
MYGROUP
\\LOCALHOST Samba Server Version 3.0.28-0.fc8
\\LOCALHOST\IPC$ IPC Service (Samba Server Version 3.0.28-0.fc8)
\\LOCALHOST\Music
\\CYCLONE
cli_start_connection: failed to connect to CYCLONE<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME
OK, change /etc/samba/smb.conf so the workgroup says whatever your workgroup is. Mine is JOHNSON, my last name. Here's my smb.conf:
Code:
[glenn@toshiba ~]$ cat /etc/samba/smb.conf
#======================= Global Settings =====================================
[global]
workgroup = JOHNSON
server string = Samba Server Version %v
netbios name = TOSHIBA
log file = /var/log/samba/log.%m
max log size = 50
security = user
#============================ Share Definitions ==============================
[homes]
Comment = Home Directories
browseable = no
writable = yes
[temp]
Comment = Public Stuff
path = /tmp
public = yes
writable = yes
printable = no
browseable = yes
After you make the change restart smb and nmb. Since you can't seem to use chkconfig try /sbin/service smb restart and /sbin/service nmb restart. Next time, with chkconfig, use the full path /sbin/chkconfig. /sbin/chkconfg --list smb for example.
my windows workgroup is MYGROUP
they match
do you think could be the same reason the chkconfig isnt working
if I go to my network I can see my windows box and in windows I can see my linux box just cant access them
the windows error message is cant access might not have permission in linux Sorry, couldn't display all the contents of "Windows Network: cyclone".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.