Sponsored Content
Full Discussion: file security/protection
Operating Systems Linux file security/protection Post 302522195 by ctsgnb on Friday 13th of May 2011 04:08:35 PM
Old 05-13-2011
Code:
chown adminuser:admingroup yourfile
chmod 444 yourfile

if a user "demo" logs in , it should be able to only read yourfile
yourfile must Not be owned by the user "demo"

I have no doubts there are some guys around that can help you better than i with security related stuff.

You can also look around in the forums, Perderabo has made some detailed post about how works rights/access/sticky bits ...

Last edited by ctsgnb; 05-13-2011 at 05:18 PM..
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

File Protection and Security

Since I'm just new in unix, can I ask the experts on how I can develop or enhance a unix utility in protecting or securing a file using scripts. Im thinking chmod, is it enought? or are there other utilities in unix? My algorithm is like there will be a menu that shows a list of types of... (2 Replies)
Discussion started by: imjustjong
2 Replies
TOMOYO-INIT(8)						  System Administration Utilities					    TOMOYO-INIT(8)

NAME
tomoyo-init - load TOMOYO Linux policy automatically SYNOPSIS
tomoyo-init DESCRIPTION
When /sbin/init starts, the kernel automatically calls this program. Policy files that have been saved to disk are subsequently loaded into kernel memory. This program copies the following files: /etc/tomoyo/exception_policy.conf => /sys/kernel/security/tomoyo/exception_policy /etc/tomoyo/domain_policy.conf => /sys/kernel/security/tomoyo/domain_policy /etc/tomoyo/profile.conf => /sys/kernel/security/tomoyo/profile /etc/tomoyo/manager.conf => /sys/kernel/security/tomoyo/manager /etc/tomoyo/stat.conf => /sys/kernel/security/tomoyo/stat If /etc/tomoyo/tomoyo-post-init exists and is executable, then it will also be executed. This allows additional control over what happens at startup. You will not usually need to invoke this program manually. EXAMPLES
Contents of "/etc/tomoyo/tomoyo-post-init" allowing non-root "demo" user to edit policy #!/bin/bash echo manage_by_non_root > /sys/kernel/security/tomoyo/manager chown -R demo /sys/kernel/security/tomoyo BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>. AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Main author. Jamie Nguyen <jamie@tomoyolinux.co.uk> Documentation and website. SEE ALSO
tomoyo-loadpolicy(8) See <http://tomoyo.sourceforge.jp> for more information. tomoyo-tools 2.5.0 2012-04-14 TOMOYO-INIT(8)
All times are GMT -4. The time now is 07:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy