ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Linux  >>  Linux System Calls
 
 


 

 
 Linux Commands interview questions  Linux Commands Interview Questions
 Linux Threads interview questions  Linux Threads Interview Questions
 Linux IPC interview questions  Linux IPC Interview Questions
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions
 Linux System Calls interview questions  Linux System Calls Interview Questions
 Linux General interview questions  Linux General Interview Questions
 Linux AllOther interview questions  Linux AllOther Interview Questions
Question
what is samba, what is configuration file, how it will 
work?
 Question Submitted By :: Dk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is samba, what is configuration file, how it will work?
Answer
# 1
Samba provides file and print services to all manner of
SMB/CIFS clients, including the numerous versions of
Microsoft Windows operating systems. Samba configuration
file is smb.conf:

Sample smb.conf
---------------

[global]
        # Domain name ..
        workgroup = DOMAIN.NAME
        # Server name - as seen by Windows PCs ..
        netbios name = SERVER1
        # Be a PDC ..
        domain logons = Yes
        domain master = Yes
        # Be a WINS server ..
        wins support = true

        # allow user privileges
        #enable privileges = yes

        obey pam restrictions = Yes
        dns proxy = No
        os level = 35
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        pam password change = Yes

        # Allows users on WinXP PCs to change their password
when they press Ctrl-Alt-Del
        unix password sync = no
        ldap passwd sync = yes

        # Printing from PCs will go via CUPS ..
        load printers = yes
        printing = cups
        printcap name = cups

        # Use LDAP for Samba user accounts and groups ..
        passdb backend = ldapsam:ldap://localhost

        # This must match init.ldif ..
        ldap suffix = dc=domain,dc=name
        # The password for cn=admin MUST be stored in
/etc/samba/secrets.tdb
        # This is done by running 'sudo smbpasswd -w'.
        ldap admin dn = cn=admin,dc=domain,dc=name

        # 4 OUs that Samba uses when creating user accounts,
computer accounts, etc.
        # (Because we are using smbldap-tools, call them
'Users', 'Computers', etc.)
        ldap machine suffix = ou=Computers
        ldap user suffix = ou=Users
        ldap idmap suffix = ou=Idmap
        # Samba and LDAP server are on the same server in
this example.
        ldap ssl = no

        # Scripts for Samba to use if it creates users,
groups, etc.
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel %u
        add group script = /usr/sbin/smbldap-groupadd -p '%g'
        delete group script = /usr/sbin/smbldap-groupdel '%g'
        add user to group script =
/usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script =
/usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod
-g '%g' '%u'

        # Script that Samba users when a PC joins the domain ..
        # (when changing 'Computer Properties' on the PC)

        #add machine script = /usr/sbin/smbldap-useradd -w '%u'
        add machine script = /usr/sbin/useradd -s /bin/false
-d /home/nobody %u


        # Values used when a new user is created ..
        # (Note: '%L' does not work properly with
smbldap-tools 0.9.4-1)
        logon drive = H:
        logon home = \\server\%U
        logon path = \\server\Profiles\%U
        logon script = logon.bat

        # This is required for Windows XP client ..
        server signing = auto
        server schannel = Auto

[homes]
        comment = Home Directories
        path = /home/users/%U
        valid users = %S
        read only = No
        browseable = No
[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        admin users = root
        guest ok = Yes
        browseable = No

[Profiles]
        comment = Roaming Profile Share
        # would probably change this to elsewhere in a
production system ..
        path = /var/lib/samba/profiles
        read only = No
        profile acls = Yes
        browsable = No
        hide files = /desktop.ini/ntuser.ini/NTUSER.*/

[printers]
        comment = All Printers
        path = /var/spool/samba
        use client driver = Yes
        create mask = 0600
        guest ok = Yes
        printable = Yes
        browseable = No
        public = yes
        writable = yes
        admin users = root
        write list = root

[print$]
        comment = Printer Drivers Share
        path = /var/lib/samba/printers
        write list = root
        create mask = 0664
        directory mask = 0775
        admin users = root

Test it with :

# testparm /etc/samba/smb.conf

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[Profiles]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

A nice writeup :

hxxp://thegoldenear.org/toolbox/unices/samba-3-pdc-print-server-debian-etch.html
 
Is This Answer Correct ?    4 Yes 0 No
Amsin21
 
  Re: what is samba, what is configuration file, how it will work?
Answer
# 2
basically SAMBA is use to share the files between linux to
windows. 


firstly installed the require rpm for samba,
like this :-- yum install samba -y
              yum install samba-swat -y

then open samba file under /etc dir,
vi /etc/samba/smb.conf
and enter your share path,valid user.
Ex.  comment = windows sharing
     path = path/your/share/directory
     valid users = surendra
     writable = yes
     browseable = yes


then type testparm for code testing.

then give the password to smb users :-
smbpasswd -a surendra

and finally restart the service of samba:-

/etc/init.d/smb start
chkconfig smb on    ( for permanent on)
 
Is This Answer Correct ?    8 Yes 2 No
Surendra Singh Adhikari
 
 
 
  Re: what is samba, what is configuration file, how it will work?
Answer
# 3
samba is samba.its build with 5 characters.those are:-
1>>S
2>>A
3>>M
4>>B
5>>A
can you believe the samba is build 5 character but its
true.This is technology.

configuration file of samba:-
--------------------------------
vi computer/folder/samba file
and it will work without any trabel.its good one.
thanks and hope all of you got it....
 
Is This Answer Correct ?    0 Yes 7 No
My Name Is Laxman..sajni Ki Sa
 

 
 
 
Other Linux System Calls Interview Questions
 
  Question Asked @ Answers
 
how to create a ftp user on redhat linux 4.0? Accenture4
What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device? NetApp2
what is samba, what is configuration file, how it will work? Wipro3
why the kernel panic error was appering? Allianz7
if root user forget the password how to change it? Wipro4
What are the signals we have in Linux NetApp3
what is the diff b/w MUTEX and semaphore? Sony9
what is cups and how to configure? IBM4
what is segmentation fault? NetApp8
What is the use of proc structure? NetApp2
what is nis server  6
what is iptabe on redhat linux? CDAC3
what is mean by raid and what are all raids available even in software and hardware? Satyam4
what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?  1
how to configure http server on red hat linux4.0? IBM3
what are the backup utilites on red hat linux 4.0? Wipro3
what is bus trap. NetApp1
how to create samba server in fedora linux 9 ? Accenture1
what is sudo on linux? IBM3
how to configure sendmail server on red hat linux version 4 and what and all we Require? Wipro3
 
For more Linux System Calls Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com