LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-21-2006, 08:13 AM   #1
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Rep: Reputation: 15
Assistance in networking my Red Hat 9.0 with windows machine


Hey everyone,

I have just install Red Hat 9.0 and just connected my Red Hat 9.0 to the internet. And I am pretty excited that I have learn something new due to the fact that I am new to linux.

What I want to do now is having my Red Hat 9.0 to talk to my windows machine. So, my question is..

1. How would I go about in doing it?
2. How would I go about in connecting to my windows workgroup. i.e If my windows workgroup was to be called "home".
3. Is there somewhere in linux that something like network neighbourhood like windows where I can see what is been shared etc..
4. What do I need to do to be able to see my linux sharing?

It would be much appreciated if you could be of any assistance.
Thanks in advance!

Regards,
tuannie
 
Old 07-21-2006, 08:28 AM   #2
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
I understand that u want to join ur machine to the HOME workgroup if this is the case then, install samba go to the /etc/samba/smb.conf

uncomment the following lines and adjust them to suite your network
hosts allow = 192.168.1. 192.168.2. 127.
interfaces = 192.168.12.2/24 192.168.13.2/24

also modify in [global]
security=user
encrypt passwords=yes
smb passwd file = /etc/samba/smbusers
unix password sync = Yes
passwd program = /usr/bin/passwd %u
username map = /etc/samba/smbusers

modify in [homes]
browseable=yes

save the file and run "testparm". if everything is OK. create accounts using

smbpasswd -a username

restart smb and then try join the workgroup. Try type this in the nautilus location bar

smb://xp-machine-name or smb://xp-ipaddress

you need to have shared an xp folder to see anything
 
Old 07-21-2006, 08:34 AM   #3
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
When I try to type in what you have ask me "/etc/samba/smb.conf"
I get the following message in the terminal.

[tuan@tuan tuan]$ /etc/samba/smb.conf
bash: /etc/samba/smb.conf: Permission denied
[tuan@tuan tuan]$ su
Password:
[root@tuan tuan]# /etc/samba/smb.conf
bash: /etc/samba/smb.conf: Permission denied
[root@tuan tuan]#
 
Old 07-21-2006, 09:15 AM   #4
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Rep: Reputation: 30
/etc/samba/smb.conf is a text file you cant execute it. You have to edit it using either 'vi' or 'pico'

use the command as follows as root:

vi /etc/samba/smb.conf
-or-
pico /etc/samba/smb.conf

edit the file with whatever iamwilliam told you. Follow his steps as best you can then try connecting again.
 
Old 07-21-2006, 09:21 AM   #5
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi Tuannie
sorry if I confused you. Open the smb.conf file with an editor such as vi or any of ur choice

Quote:
#vi /etc/samba/smb.conf
 
Old 07-21-2006, 09:35 AM   #6
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
how do I save a file in terminal?

I type
vi /etc/samba/smb.conf
and then edited the things, but i dont know how to save it
 
Old 07-21-2006, 09:47 AM   #7
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
I also click on the main menu >> Accessories >> Text editor and then open up smb.conf but it only open as read only.
 
Old 07-21-2006, 09:58 AM   #8
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Rep: Reputation: 30
you need to know 'vi' editor if you dont know it use pico its easier.
 
Old 07-21-2006, 09:59 AM   #9
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
using vi as root:

open file using "vi filename"
press "a" to go to insert mode
make changes
press "escape key"
type ":wq!" to save then quit
 
Old 07-21-2006, 10:22 AM   #10
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
okay I save it and then type testparm

This is what it show up:


Code:
[root@tuan root]# testpam
bash: testpam: command not found
[root@tuan root]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.

Press enter to see a dump of your service definitions

# Global parameters
[global]
        coding system =
        client code page = 850
        code page directory = /usr/share/samba/codepages
        workgroup = WORKGROUP
        netbios name =
        netbios aliases =
        netbios scope =
        server string = Samba Server
        interfaces = 192.168.12.2/24 192.168.13.2/24
        bind interfaces only = No
        security = USER
        encrypt passwords = Yes
        update encrypted = No
        allow trusted domains = Yes
        hosts equiv =
        min passwd length = 5
        map to guest = Never
        null passwords = No
        obey pam restrictions = Yes
        password server =
        smb passwd file = /etc/samba/smbpasswd
        root directory =
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
        passwd chat debug = No
        username map = /etc/samba/smbusers
        password level = 0
        username level = 0
        unix password sync = Yes
        restrict anonymous = No
        lanman auth = Yes
        use rhosts = No
        admin log = No
        log level = 0
        syslog = 1
        syslog only = No
        log file = /var/log/samba/%m.log
        max log size = 0
        timestamp logs = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        protocol = NT1
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts host wins bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max smbd processes = 0
        max disk size = 0
        max open files = 10000
        name cache timeout = 660
        read size = 16384
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        stat cache size = 50
        use mmap = Yes
        total print jobs = 0
        load printers = Yes
        printcap name = /etc/printcap
        disable spoolss = No
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        strip dot = No
mangling method = hash
        character set =
        mangled stack = 50
        stat cache = Yes
        domain admin group =
        domain guest group =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = Auto
        local master = Yes
        domain master = Auto
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = No
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        add share command =
        change share command =
        delete share command =
        config file =
        preload =
        lock dir = /var/cache/samba
        pid directory = /var/run/samba
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        dfree command =
         remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        time offset = 0
        NIS homedir = No
        source environment =
        panic action =
        hide local users = No
        host msdfs = No
        winbind uid =
        winbind gid =
template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 15
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = No
        comment =
        path =
        alternate permissions = No
        username =
        guest account = nobody
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        printer admin =
        force user =
        force group =
        read only = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = 00
        inherit permissions = No
        inherit acls = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow = 192.168.1. 192.168.2. 127.
        hosts deny =
        status = Yes
        nt acl support = Yes
        profile acls = No
        block size = 1024
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        write cache size = 0
        max print jobs = 1000
        printable = No
        postscript = No
        printing = cups
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = No
        printer driver =
        printer driver file = /etc/samba/printers.def
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        hide unreadable = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = No
        share modes = Yes
        copy =
        include =
        exec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No
        vfs object =
        vfs options =
        msdfs root = No
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
[root@tuan root]#
 
Old 07-21-2006, 10:45 AM   #11
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
is samba running "/etc/init.d/smb restart"?
have you created a samba account like in earlier post?
go to windows machine and add it to the workgroup=WORKGROUP

follow the first post it should work

let me know how it goes
 
Old 07-21-2006, 05:26 PM   #12
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by iamwilliam
is samba running "/etc/init.d/smb restart"?
have you created a samba account like in earlier post?
go to windows machine and add it to the workgroup=WORKGROUP

follow the first post it should work

let me know how it goes
Okay, I have done the following

[root@tuan root]# smbpasswd -a tuan
New SMB password:
Retype new SMB password:
Password changed for user tuan.
[root@tuan root]#


[root@tuan root]# /etc/init.d/smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@tuan root]#

I created a workgroup in my windows machine WORKGROUP and comp name was xp-laptop

Then I try typing in nautilus Nautilus cannot display "smb://xp-laptop"

I get the following message:

Couldn't display "smb://xp-laptop", because no host "xp-laptop" could be found. Check that the spelling is correct and that your proxy settings are correct.

and then try it with smb://192.168.1.4

I get this message:

Nautilus cannot display "smb://192.168.1.4"
 
Old 07-22-2006, 12:27 AM   #13
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Anyone have the solutions to my problem that I have previously posted?
 
Old 07-22-2006, 03:13 AM   #14
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Quote:
interfaces = 192.168.12.2/24 192.168.13.2/24
I got this from your testparm output. change it to the ipadress of your linux machine

which should be "192.168.1.x/24". As it should be on the same network with the windows machine.

Good luck

Last edited by iamwilliam; 07-22-2006 at 03:14 AM.
 
Old 07-22-2006, 10:06 AM   #15
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by iamwilliam
I got this from your testparm output. change it to the ipadress of your linux machine

which should be "192.168.1.x/24". As it should be on the same network with the windows machine.

Good luck
So, if my linux machine ip address is 192.168.1.103
and my windows ip is 192.168.1.4

Should it be something like the following?

interfaces = 192.168.1.103/24 192.168.1.4/24
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Require assistance in Red Hat 9.0 & Netcomm NP1100 tuannie Linux - Networking 4 07-24-2006 05:03 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
Windows XP Pro. and Red Hat 9.0 Networking Imhoteph Red Hat 4 06-02-2004 09:10 PM
Networking two Red Hat servers with windows xfree143 Linux - Newbie 4 05-26-2003 09:53 PM

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

All times are GMT -5. The time now is 02:11 AM.

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