08-07-2009
First of all, sorry for the mess I might have made in the previous post (Newbie :s) and thanks for the reply!!
Quote:
Originally Posted by
zaxxon
Maybe a solution via sudo for the needed commands can do.
But what "normal" user should be able to change IP-addresses?
This is going to be an ip video server, so you can understand the actual 'user' has to be able to change the ip address.
Quote:
Originally Posted by
zaxxon
Whatever - you could set up something like an "exchange" directory where the use has permissions to edit the file and via cron it will replace the original file which has been backed up before of course and then issue a network restart.
Now this looks like something I have been looking for. How do I make such an 'exchange' directory? And how do I link the new file with the original file? (or some data in the new file)?
The main idea is I am and remain the root, but the user can control some settings and do some commands, without becoming root or even log in to linux.
Thanks in advance!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
On the standard ftp supplied with Solaris and HP-UX is there anyone that has been able to disable users from certain settings.
i.e the put function.
Our customer ftp's onto the unix host and gets files for extraction into a pc based spreadsheet. I want to stop them from being able to delete... (1 Reply)
Discussion started by: blp001
1 Replies
2. UNIX for Dummies Questions & Answers
A program named /usr/bin/aa.sh, two parameters: 11, 22. after start it, the row in `ps -ef` is almost like the following:
root 12198 10278 0.0 Nov 25 pts/3 0:00.23 /usr/bin/aa.sh 11 22
but I want to change "/usr/bin/aa.sh 11 22" to one rule string, such as: "AA_11_22", how to... (1 Reply)
Discussion started by: linkjack
1 Replies
3. Shell Programming and Scripting
Hello,
I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job.
linux1
linux2
linux3
linux4
linux5 ......
.
.
.
.
.
1.) How can i enter "password" in script rather asking me?
I was trying this...
ssh... (2 Replies)
Discussion started by: deal732
2 Replies
4. Shell Programming and Scripting
(0 Replies)
Discussion started by: goldfish
0 Replies
5. Shell Programming and Scripting
Hello:
I am using csh, and am a complete noob when it comes to shell scripting.
I want the following:
1) Ignore case when doing auto-complete.
2) If there are multiple matches (example: I have files abc.txt abc.txt.1, abc.txt.2 and type abc<tab>), count the number of matches.
If... (1 Reply)
Discussion started by: madiyaan
1 Replies
6. AIX
In my .profile, my prompt is set like this:
set -o vi
PS1=`logname`@`hostname -s`:'$PWD>'
Is there a way to show what the history number would be of the command I'm typing in the prompt? For example, I frequently run commands then run 'history' to pull up the history number of a command... (2 Replies)
Discussion started by: ptrotter
2 Replies
7. Shell Programming and Scripting
I have an rsync command that I want to create a variable where user can change to customize the parameters.
complete rsync command to run:
$RSYNC -e 'ssh -ax -o ClearAllForwardings=yes' --log-file=$LOG_FILE --delete -avzcr -u --update $SRC_DIR $USER@$TRG_SRV:$TRG_DIR >> $LOG_FILE
What I... (4 Replies)
Discussion started by: abubin
4 Replies
8. Shell Programming and Scripting
hi
I am trying to make my own commands in my linux.I thought a command for changing directories will be easy.
I made a simple file amd made the entries
#!/bin/bash
cd /opt/mydir
I then made the file executable and then moved it to /usr/bin.
But when i type the script name nothing... (2 Replies)
Discussion started by: born
2 Replies
9. Shell Programming and Scripting
I have a jump off server, which grants SSH access to a few other servers.
I would like to create a custom shell which can be assigned to specific user accounts which runs a menu script upon login, where they can select which server they want to jump too, however should they hit ctrl-c or any... (1 Reply)
Discussion started by: JayC89
1 Replies
10. Shell Programming and Scripting
Hi All,
Am getting the raw report from the source and need to prepare the custom report as per the requirement.
Requirement keep getting change according to the need.
Raw data is as below
/* ----------------- test_job_hu ----------------- */
insert_job: test_job_hu job_type: CMD... (4 Replies)
Discussion started by: pradeep84in
4 Replies