01-22-2008
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
I wanted to export the display of all directories of home with their respective subdirectories and files if any on my local pc.
this home directory is of some remote machine .
using ssh remote login and then using struct direct i can just gate name list of directories .
but not the display... (2 Replies)
Discussion started by: bhakti
2 Replies
2. UNIX for Advanced & Expert Users
Query: In a directory there are 20 files, I have to display the Filenames which contains the content as JAVA in any line of the file. Please tell me the command or commands. (3 Replies)
Discussion started by: kish_kk84
3 Replies
3. Shell Programming and Scripting
Hello,
Is there a way to use wc, sed or other commands against remote sftp in a regular shell script?
wc -c *.* | grep total | sed s/total// ?
thanks in advance (0 Replies)
Discussion started by: chm0dvii
0 Replies
4. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
5. Shell Programming and Scripting
I have a script that I'm trying to use that will check for files on a remote machine and if there is files copy the files, modify the perm on the copied files, and then delete the files off of the remote server. Right now I need to get the correct syntax so the the remote commands still interpret... (4 Replies)
Discussion started by: jcalisi
4 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone,
I am kunal,....
What command is used to display only directories (not files). ?
thanks in advance.....
kunal patil
kunalpatil09@gmail.com (2 Replies)
Discussion started by: kunalpatil09
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Quick question, someone will hopefully be able to stop me from :wall:.
I currently have a script which calls a script on a remote machine and captures the stdout to a file:
ssh <user>@<server> > output 2>/dev/null <<_EOF
/path/script.ksh
_EOF
This runs the script but the... (4 Replies)
Discussion started by: chris01010
4 Replies
8. Cybersecurity
Hello,
I have a question about X forwarding. I was told that we can't X forwarding anymore, do to a security checklist.
Example:
bitlord@server1# ssh -X server2
So we have to use the DISPLAY variable now. I thought this was less secure?
Example:
bitlord@server1# xhost + server2
server1... (0 Replies)
Discussion started by: bitlord
0 Replies
9. Shell Programming and Scripting
ssh XXXXX@XXXXX'. $HOME/.profile 2>/dev/null;cd $COMMON_TOP/admin/scripts/$CONTEXT_NAME; adcmctl.sh start "apps${AppsPass}" || cd $ADMIN_SCRIPTS_HOME; adcmctl.sh start "apps${AppsPass}"'
As per our business requirement we should be able to execute the above two commands seprated with or ( || )... (4 Replies)
Discussion started by: Y.balakrishna
4 Replies
10. UNIX for Advanced & Expert Users
hi, i have an AIX6.1 machine and i modified a user's profile so that it creates history file for each ip address that connects with this user. the reason i did this is because more than 1 person connects with the same user so i want to keep track of command run by all of them. therefore, in the... (5 Replies)
Discussion started by: omonoiatis9
5 Replies
LEARN ABOUT ULTRIX
userfile
USERFILE(5) File Formats Manual USERFILE(5)
Name
USERFILE - defines uucp security
Syntax
/usr/lib/uucp/USERFILE
Description
The utility uses the USERFILE to establish what access a remote system can have to the local system. An entry should exist for each sys-
tem. If no entries exist for a particular system, the default entries are used. The entries for particular systems have the following
format:
login-name , node-name X # path-name
login-name
The name with which the remote system logs in.
node-name The name of the remote node.
X# The execution level for the remote system. The remote system can execute commands defined in the file that have an execution
level less than or equal to the number #.
path-name The remote system can access anything at the local system with this prefix.
Two entries must also be provided for systems not otherwise listed:
remote, X# path-name ...
local, X# path-name ...
These entries define the execution level and access pathnames for the local system and all remote systems not defined by specific entries.
Examples
remote, X1 /usr/spool/uucppublic
local, X9 /
max,systemY /usr/sources /usr/src/share
max,systemZ X3 /usr
In the above example, the node named systemY with the login name max has access to anything with the pathname prefixes and The node named
systemZ with the login name max can execute commands defined in with an execution level of 3 or lower. It can access anything with the
pathname prefix
Any other remote systems can execute commands defined in with an execution level of 1 or 0. They can access anything with the pathname
prefix of
Users on the local system can execute any of the commands defined in and access anything on the system.
See Also
Guide to the uucp Utility
USERFILE(5)