11-14-2002
Livin Free:
u/s your point about not being able to find the same number of files as a user than as root. But the problem remains... I cannot locate at all as an ordinary user.
The permissions of my slocate.db is 640. Is that the reason of this problem. I do know sometime back I was able to locate as an ordinary user as well. So I don't know why this issue crept up.
>>You can also use the environment variable LOCATE_PATH to set the list of database files to search.
This Env variable is not set. I draw a blank both as root and as myself.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
i executed a script.
cat <filename> | grep <pattern> | awk '{print $1}' | read a
i get the answer when i execute it in the shell env (no problem with that)
as
./<name>.ksh
when i tried the same in cron (as an entry in cron)
value is not being read in the variable a through... (1 Reply)
Discussion started by: matrixmadhan
1 Replies
2. Shell Programming and Scripting
Good day.
I whant to put in a "readkey" function into my script. My script will be running in "real time". Basicaly I whant to add a eg. "Press X to exit" statement into my script. More or less like the read command, but I don't whant it to wait for the user to press enter. eg. Readkey. If no... (5 Replies)
Discussion started by: Blooper
5 Replies
3. AIX
Multipart question..
Can anybody explain why this happens :
-rw-rw-r-- 1 fnsw fnusr 1531061 Feb 13 21:45 filename1.log
-rw-rw-r-- 1 fnsw fnusr 1760706 Feb 10 22:10 filename2.log
-rw-rw-r-- 1 fnsw fnusr 1525805 Aug 16 2005 filename3.log
-rw-rw-r-- 1... (3 Replies)
Discussion started by: dbridle
3 Replies
4. Solaris
Hi all,
Thanks for any replies and for reading in advance.
We have upgraded one of our database instances to 10g on a Solaris 8 box, anyhow the other day it started trying to ping loads of weird IP addresses that we don't use, since our systems all run on pretty similar IP's. It all behind... (0 Replies)
Discussion started by: B14speedfreak
0 Replies
5. Shell Programming and Scripting
I am trying to read a file and skip few records based upon the following two columns. Pipe delimiter used between the two columns.
Column1|Column2
Property|CutOff
Target|11111
Min|9999
Max|10000
Comment|This is a test
Property|Weight
Target|222
Min|3434
Max|77777
UOM|mm ... (5 Replies)
Discussion started by: ganesh123
5 Replies
6. Shell Programming and Scripting
Right folks... this is probably something simple that I'm missing as it's early, but can anyone tell me what's going on here:
The Script:
cougar:/usr/hxscripts>vi ~/test.ksh
"/usr/home/branch/users/tech/test.ksh"
#!/bin/ksh
LOGDIR=/usr/hxscripts/LOGS/logmeoff/ # Logging directory,... (6 Replies)
Discussion started by: alexop
6 Replies
7. Shell Programming and Scripting
Can some-one give me a view to this :
I have a directory in an unix server, having permissions r-xr-xr-x .This directory is basically a source directory.
Now there is another directory basically the destination directory which has all the permissions.
Note:I log in as not the owner,but user... (5 Replies)
Discussion started by: navojit dutta
5 Replies
8. Solaris
Dear Solarizer,
Every time i log in to the sheel i always got this messages,
How to stop this messgaes permanently.
tpx@plood/export/home/ $ Jul 29 11:35:00 plood sendmail: unable to qualify my own domain name (plood) -- using short name
Jul 29 11:35:00 plood sendmail: unable to qualify... (3 Replies)
Discussion started by: tpx99
3 Replies
9. UNIX for Advanced & Expert Users
Can someone please explain why I get two outputs with the du command? The first one gave me one. I also didn't ask for the second directory so why did it give that directory?
$ du -h "/media/Part 1/Desktop/playlist"
775M /media/Part 1/Desktop/playlist
$ du -h "/media/Part... (1 Reply)
Discussion started by: cokedude
1 Replies
10. Solaris
Hi,
when i execute a df, look what such a strange numbers appear
Does anybody know why these numbers appear??? is it critical?? is there a way to mend it?
df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d704 2033295 18446744073707800956 3722957... (3 Replies)
Discussion started by: pabloli150
3 Replies
LEARN ABOUT OPENSOLARIS
slocate
SLOCATE(1) General Commands Manual SLOCATE(1)
NAME
slocate - Security Enhanced version of the GNU Locate
SYNOPSIS
slocate [-qi] [-d <path>] [--database=<path>] <search string>
slocate [-i] [-r <regexp>] [--regexp=<regexp>]
slocate [-qv] [-o <file>] [--output=<file>] slocate [-e <dir1,dir2,...>] [-f <fstype1,...>] <[-l <level>] [-c] <[-U <path>] [-u]>
slocate [-Vh] [--version] [--help]
DESCRIPTION
Secure Locate provides a secure way to index and quickly search for all files on your system regardless of ownership. It uses incremental
encoding just like GNU locate to compress its database to make searching faster, but it will also check file permissions and ownership
before displaying matched entries so that users will not see files they do not have access to. Note that permissions and ownership are not
stored in the database.
This manual page documents slocate. slocate Enables system users to search entire filesystems without displaying unauthorized files.
OPTIONS
-u Create slocate database starting at path /.
-U <dir>
Create slocate database starting at path <dir>.
-e <dir1,dir2,...>
Exclude directories from the slocate database.
-f <fstype1,...>
Exclude files on specific file systems from the slocate database.
-c Parse '/etc/updatedb.conf' when updating the slocate database. (see CONFIGURATION FILE below).
-l <level>
Security level. 0 turns security checks off. This will make searchs faster. 1 turns security checks on. This is the default.
-i Does a case insensitive search.
-q Quiet mode. Error messages are suppressed.
-n <num>
Limit the amount of results shown to <num>.
-r <regexp>
--regexp=<regexp> Search the database using a basic POSIX regular expression.
-o <file>
--output=<file> Specfies the database to create.
-d <path>
--database=<path> Specfies the path of databases to search in.
-h --help Display this help.
-v --verbose Verbose mode. Display files when creating database.
-V --version Display version.
ENVIRONMENT
LOCATE_PATH
Colon-separated list of databases to search.
CONFIGURATION FILE
Secure Locate will parse GNU Locate's /etc/updatedb.conf when the argument is provided. But please be aware that Secure Locate currently
does NOT support all options provided by GNU Locate's configuration file.
Options currently supported by Secure Locate are PRUNEFS and PRUNEPATHS
VERSION
Secure Locate v3.0 beta
AUTHOR
Kevin Lindsay - Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
BUG REPORT
Report bugs to slocate@trakker.ca
URL
http://slocate.trakker.ca/
SEE ALSO
updatedb(1)
January 6, 2006 SLOCATE(1)