Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am using Fedora Core 5 with SELinux enabled. This works fine and I can tune SELinux fine to suit my needs, but not so for ncpfs mounts.
I happen to work in an organisation that uses Novell architecture, so I need to be able to mount a Novell network share, using the ncpfs tools. Now I am able to connect to the share, but after some idle time, it gets disconnected and won't reconnect. I went to ask another Linux user in the organization for help.
However, a colleague of mine, who disabled SELinux on his machine, has no problems, while I am unable to connect to the shares after the described idle time... Unless I get SELinux in permissive mode, that is.
Searching for policy information about how to permit ncpfs to be used, I get stuck.. Perhaps the context on the parent directory in which I want to mount the ncpfs mount is wrong?
Or the selinux-policy-targeted is missing ncpfs directives ??
Anyway, I am unable to work properly, currently, with ncpfs shares.
Does anyone have this same problem? Or is there someone who could point me in the right direction of solving this issue?
Besides this, I tried to put the ncpfs mounting in autofs, trying to see if that would solve my problem, but it seems automount is completely unable to mount ncpfs shares at all...
There are three configs in which I would want to mount the ncpfs share, being either: - autofs, making automount mount the share when needed. This fails.. Accompanying config and messages:
share -fstype=ncpfs,ipserver=server.example.com,user=roh.example.com,volume=USR,passwd=secret123,uid=roh SERVER
When setenforce 0, the mount succeeds. with setenforce 1, I get these messages:
- automatic (boot time) mount through /etc/fstab. This fails though, without messages in dmesg nor /var/log/messages, nor /var/log/audit/audit.log. The content of /etc/fstab being:
SERVER /mnt/netmount ncpfs defaults,auto,user=roh.example.com,passwd=secret123,volume=USR,ipserver=server.example.com,uid=roh,gid=users 0 0
No selinux output available
- possible mount as shown above by non-root user. Therefore I have set suid on /sbin/mount.ncpfs but it comes with Permission Denied, and no concrete evidence to why is found (nor messages, nor selinux audit)