Hi Friends,
How can I Restore the Files present under "lost+found" Directory of a FileSystem (in Solaris & Tru64 OS) to their original Locations.
Now-a-days I am loosing lots of files in 2 of my Machines,
One running Solaris8 and other Tru64(Digital) Unix.
Thanx in... (1 Reply)
Solaris 8 using ksh:
I have a directory called apps...in that directory there are some flat files and some directories. I can't access one particular subdirectory called netscape-old. I am NOT logged in as root
Here is the info...
user@machine>ls -l
drwxr-xr-x 3 root other ... (5 Replies)
Hi Guys.
I am a complete shell scripting newbie with some syntax and commands understanding. I'm more of a win admin. With that said: I need to write a shell script to monitor a directory '/Mon_Dir' for new occurrences of files with .xx extension. Once a new file is detected in the directory, a... (4 Replies)
Hie
I am running a sun solaris server of about 300 gigabytes disk capacity. The problem is that the machine has been having problems over the past year and at times the machine would just freeze or hang and had to be re-booted. Consequently there are too many entries in the lost+found... (1 Reply)
Hi,
I am new to Unix.I want to set the path and classpath setting for JDK1.4,Weblogic 9.2 and Oracle 9?
So i need to set those settings in setEnv.sh file.
But i am unable to find that file in my unix environment?
Pls. do tell me where this setEnv.sh is stored?
In which directory or path?... (8 Replies)
I am trying to use a loop to strip of the funny character ^M at the end of all lines in each file found in current directory and I have used the following in a script:
find . -type f -name '*.txt' | while read file
do
echo "stripping ^M from ..."
ex - "$file" > $tempfile
%s/^M//g
wq!
# mv... (4 Replies)
Here is a simplified example of my problem. Say I have the following 3 sub-directories;
./folder1
A.txt
A.sh
./folder2
B.txt
./folder3
C.txt
C.sh
I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Hi all,
Please somebody help me with this:
I want to check if the files listed in a text file, are found under a directory or not.
For example: the file is list_of_files.txt, which contains inside this rows:
# cat list_of_files
logs
errors
paths
debug
#
I want to check if these... (3 Replies)
Discussion started by: arrals_vl
3 Replies
LEARN ABOUT CENTOS
seunshare
SEUNSHARE(8) User Commands SEUNSHARE(8)NAME
seunshare - Run cmd with alternate homedir, tmpdir and/or SELinux context
SYNOPSIS
seunshare [ -v ] [ -c ] [ -C ] [ -k ] [ -t tmpdir ] [ -h homedir ] [ -Z context ] -- executable [args]
DESCRIPTION
Run the executable within the specified context, using the alternate home directory and /tmp directory. The seunshare command unshares
from the default namespace, then mounts the specified homedir and tmpdir over the default homedir and /tmp. Finally it tells the kernel to
execute the application under the specified SELinux context.
-h homedir
Alternate homedir to be used by the application. Homedir must be owned by the user.
-t tmpdir
Use alternate tempory directory to mount on /tmp. tmpdir must be owned by the user.
-c --cgroups
Use cgroups to control this copy of seunshare. Specify parameters in /etc/sysconfig/sandbox. Max memory usage and cpu usage are to
be specified in percent. You can specify which CPUs to use by numbering them 0,1,2... etc.
-C --capabilities
Allow apps executed within the namespace to use capabilities. Default is no capabilities.
-k --kill
Kill all processes with matching MCS level.
-Z context
Use alternate SELinux context while runing the executable.
-v Verbose output
SEE ALSO runcon(1), sandbox(8), selinux(8)AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com> and Thomas Liu <tliu@fedoraproject.org>
seunshare May 2010 SEUNSHARE(8)