LinuxQuestions.org
Review your favorite Linux distribution.
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 10-30-2007, 03:17 AM   #1
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Rep: Reputation: 31
Problem Samba in RHEL5


Sir

in my office i configured sb in rhel5
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = central (is my domain configured in win2003 server in another server)
security = share
the smb.conf man page
hosts allow = 192.168.100.1 192.168.101.254.

[test](is smb user also linux user)
comment = Mary's and Fred's stuff
path = /home/test
valid users = test
; guest ok = no
writeable = yes
; printable = no
create mask = 0777

configure windows user soumalya passwd xyz123(graphically)
i restarted smb

a windows mchine name media which is joined to the doamin name central and the user name of this machine is soumaya passwd xyz123.

now i when i want to access media using soumalya user i cant access.

help me pls

thanks in advance
 
Old 10-30-2007, 09:15 PM   #2
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Rep: Reputation: 15
i have just had problems with samba on my RHEL5 machine. i was in contact with RH support, which suggest trying this configuration, testing that it works, then changing what is necessary to align it with your network:

Code:
1. You need to configure your smb.conf as bellow.
==
[global]
workgroup = EXAMPLE.COM
netbios name = PDC
passdb backend = tdbsam
security = user
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null  -M %u
logon drive = H:
logon path = \\%L\Profiles\%U
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon/scripts
        browseable = No
        read only = No
[Profiles]
        comment = Roaming Profile Share
        path = /var/lib/samba/profiles
        read only = No
        browseable = No
        guest ok = Yes
        profile acls = Yes
==
Add the root user to smb database

# smbpasswd -a root
Provide the password here.

Start smb service.

Make sure that you have proper netlogon and profiles directory created.

Further you need to do the Net group Mapping as bellow.
==
# net groupmap add ntgroup="Domain Users" unixgroup=users
# net groupmap add ntgroup="Domain Guests" unixgroup=nobody
# net groupmap add ntgroup="Domain Admins" unixgroup=ntadmins
==
Make sure that you have ntadmin, users, nobody groups in your /etc/group
file.

After this you need to grant the access.

# net rpc rights grant 'EXAMPLE.COM\Domain Admins'
SeMachineAccountPrivilege -S PDC -U root

Now add the windows box to this ie: EXAMPLE.COM
 
Old 11-01-2007, 08:03 AM   #3
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
thank you boss for ur valuable info its working.

but can u pls describe the script.



thanks again
 
Old 11-02-2007, 01:07 AM   #4
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
Sir

when i want to access same linux machine from media machine as local user or domain user, it shows an error ihave attached.


thanks again
 
  


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
rhel5 desktop problem solanki.chandrakant Linux - Desktop 1 12-29-2007 06:51 AM
Weird Network Problem on RHEL5 yusiang Linux - Networking 1 08-09-2007 01:49 AM
RHEL5 : RHN problem to entitle virtual guest soussef24 Red Hat 0 07-11-2007 10:51 AM
RHEL5: Problem automounting DVD via konqueror Digdis Red Hat 2 06-28-2007 08:13 AM
RHEL5 - Xen - Guest Install Problem TAB4336 Linux - Enterprise 4 05-15-2007 02:31 AM

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

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