08-30-2011
Append the command to /etc/rc.local.
This User Gave Thanks to radoulov For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All:
I wanted to know if i can write a program in UNIX, a program that does not run under a particular user login, but starts up at BOOT time.
Are there any online material that i could look into to do that.
Appreciate the help.
Thanks,
Preetham (6 Replies)
Discussion started by: preetham
6 Replies
2. Solaris
I have a NIS environment using all Solaris 9 systems. After all kinds of trobleshooting i am to the point where I can login to a NIS account from a client system. However, the logon process starts and the splash screen is displayed and then the desk top is displayed but then it flashes and kicks... (1 Reply)
Discussion started by: meyersp
1 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I have an AIX 433 workstation that keeps booting into command mode. It was booting into CDE for a long time now. Suddenly now it boots into command line mode. No errors while booting up. Do not see anything in errpt. Don' t know where to start from.. Can any one please help me..thanks.
... (2 Replies)
Discussion started by: navinxavier
2 Replies
4. UNIX for Dummies Questions & Answers
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies
5. OS X (Apple)
Hi all,
I want to execute a command when system boots. I tried to edit /etc/rc.common and add my command at the end of rc.common, but it does not work!
Anyone knows how to do it?
Thanks :) (6 Replies)
Discussion started by: andrewust
6 Replies
6. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
7. Shell Programming and Scripting
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies
8. UNIX for Beginners Questions & Answers
I have created a cronjob that successfully executes and among other thing runs aria2c to download several files and save them to a folder. However, since it executes as sudo, the downloaded folder is saved with those permissions.
Is there a way to execute the cronjob so that the downloaded folder... (4 Replies)
Discussion started by: cmccabe
4 Replies
9. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
LEARN ABOUT DEBIAN
tomoyo-loadpolicy
TOMOYO-LOADPOLICY(8) System Administration Utilities TOMOYO-LOADPOLICY(8)
NAME
tomoyo-loadpolicy - load TOMOYO Linux manually
SYNOPSIS
tomoyo-loadpolicy [option]
tomoyo-loadpolicy [option] [remote_ip:remote_port]
DESCRIPTION
This program reads TOMOYO Linux policy from standard input and loads it into the kernel.
OPTIONS
-e Append to /sys/kernel/security/tomoyo/exception_policy.
-ef Overwrite /sys/kernel/security/tomoyo/exception_policy.
-d Append to /sys/kernel/security/tomoyo/domain_policy.
-df Overwrite /sys/kernel/security/tomoyo/domain_policy.
-m Append to /sys/kernel/security/tomoyo/manager.
-p Append to /sys/kernel/security/tomoyo/profile.
-s Append to /sys/kernel/security/tomoyo/stat.
remote_ip:remote_port
Write to policy on a remote system via an agent waiting at port remote_port on IP address remote_ip.
EXAMPLES
Append a line to exception policy
echo "acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Remove a line from exception policy
echo "delete acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Append a line to domain policy
( echo "<kernel>"; echo "file execute /sbin/init" ) | tomoyo-loadpolicy -d
Replace currently loaded domain policy
tomoyo-loadpolicy -df < /etc/tomoyo/domain_policy.conf
Append to policy remotely
tomoyo-loadpolicy -d 192.168.1.1:10000 < /etc/tomoyo/192.168.1.1/domain_policy.conf
Remove a line from "/sys/kernel/security/tomoyo/manager"
echo "delete /usr/sbin/tomoyo-queryd" | tomoyo-loadpolicy -m
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-savepolicy(8), tomoyo-editpolicy(8), tomoyo-editpolicy-agent(8), tomoyo-init(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-LOADPOLICY(8)