Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-24-2006, 07:30 AM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 1
Rep:
|
Stopping executables on memory sticks
Hi All,
I'm running a school network and we're trying stop people running .exe, .swf and other files from memory sticks via samba. Is there some way of setting a "don't execute" flag when the stick automounts?
Cheers,
Jools
|
|
|
07-24-2006, 07:56 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
You could use the noexec/-o noexec flag that mount supports.
Add this to the appropriate entry (entries) in the /etc/fstab, something like this:
Code:
/dev/sda1 /mnt/usbfs auto noexec,noauto,rw,user 0 0
See man mount for details.
Hope this helps.
|
|
|
07-24-2006, 10:09 AM
|
#3
|
Member
Registered: Nov 2005
Posts: 144
Rep:
|
You should be aware that you can't stop people from copying the file to their home directory and executing it there. If you want to disable that, you would have to mount the home partition with the noexec flag.
If you are only worried about windows executables, you could just uninstall wine.
|
|
|
07-25-2006, 10:19 AM
|
#4
|
LQ Newbie
Registered: Nov 2003
Location: Royston, Herts UK
Distribution: Fedora Core 5
Posts: 27
Rep:
|
An alternative but drastic method is to go around all the workstations, add an admin password to the BIOS and then disable all the USB ports. Bit of a killer if you use USB mice and keyboards but I have seen it done in a company to stop data theft via USB pen drives. Sorry I don't have a clever answer :-(
Woppa
|
|
|
07-25-2006, 11:13 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
You should be aware that you can't stop people from copying the file to their home directory and executing it there.
Yes you can and from about anywhere. GRSecurity contains Trusted Path Execution (TPE) which allows root to deny users executing stuff in dirs that are and not in $PATH, and not owned by root:root, and world-writable (IIRC). Spose one could do similar with any Rule Based Access solution (RBAC).
Last edited by unSpawn; 07-25-2006 at 11:15 AM.
|
|
|
All times are GMT -5. The time now is 06:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|