10 comments on “Setting up Samba Shares on RedHat Enterprise 5

  1. ur result is gud nd presented in some good manner, but actually i am finding an problem with chcon -t samba_share_t /sunny command, it is not labeling the directory.
    It always give the error as:” chcon:failed to create security context: unlabeled”. what can b the reason plz reply soon

  2. sourabh, make sure you are running SELinux. If it is not running, the ‘chcon’ command will fail.

  3. hw can i enable selinux if i am working on some server in putty and no one is authenticated to enable selinux i tried the command to enable selinux as:

    “lokkit –selinuxtype=enabled”

    is this command ok or sum error is there.

  4. sorry the command is lokkit –selinuxtype=enabled

    actually just tell me wen i open lokkit then wat shud b the security level nd selinux situation to run chcon

  5. Lokkit doesn’t have anything to do with it. You need to make sure SELinux is enabled. From the command line (as the root user), run:

    #> getenforce

    If it returns a 0, the SELinux is not on. In that case, run:

    #> setenforce 1

    Just to be sure, you are running Red Hat 5 or later, correct?

  6. Thanks for your help i got it solved well this time i am having problem with sendmail server.

    actually i have configured the dovecot imap for my server nd strat the applications as:
    [bash]# make -C /etc/mail
    [bash]# chkconfig –level 2345 sendmail on
    [bash]# chkconfig –level 2345 dovecot on
    [bash]# chkconfig –list sendmail
    [bash]# chkconfig –list dovecot
    [bash]# /etc/init.d/sendmail restart
    [bash]# /etc/init.d/dovecot restart
    [bash]# grep sendmail /var/log/maillog
    [bash]# grep dovecot /var/log/maillog

    THESE ALL RUNS WELL
    NOW JUST TELL ME ALL THNG OK ND NOW WAT COMMAND IS USED FOR SENDING MAIL////////

  7. hello evryone is there anyone who can help me mounting usb pen drive in rhel 5.0. Actually i am using vmware tool for linux and when i enter pendrive in usb it connect to windows. Now just tell me hw can i connect pen drive to vmware linux nd text the mounting command too…

  8. Thank you for this line:

    chcon -t samba_share_t

    Shame it took me 2 hours to find this post :) I knew it was something with SELinux

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>