"grep" not working
Dirk Moolman
DirkM
Thu May 17 04:28:14 PDT 2007
I think there is something different between the login environments,
that is causing this problem - I just cannot find it
I log in as root, the (su -) to the user login, and run the grep - no
data
I exit, then (su) to the user login (without the -), and run the grep -
this time it works
-----Original Message-----
From: linux-users-bounces at linux-sxs.org
[mailto:linux-users-bounces at linux-sxs.org] On Behalf Of Dirk Moolman
Sent: 17 May 2007 01:11 PM
To: Linux tips and tricks
Subject: RE: "grep" not working
>From: linux-users-bounces at linux-sxs.org
[mailto:linux-users-bounces at linux->sxs.org] On Behalf Of Vu Pham
>Sent: 17 May 2007 12:47 PM
>
>On Thu, 2007-05-17 at 09:06 +0200, Dirk Moolman wrote:
>> This is something I haven't seen before. One of my developers, uses
>> grep to assist in client queries (to find files and info in unload
>> files).
>>
>> When she does a grep on certain strings, she can't find anything, but
>> when I do the same grep, logged in as root, I find data.
>>
>> What would cause this ? I will have to compare her login with
root's
>> login, but I would appreciate some suggestions / tips from the
guru's.
>>
>>
>I know my answer is not well-thought before posting, but you mentioned
>grep to "find files", so maybe the difference is her account has no
>permissions to access some directories which root can ?
Unfortunately not, I just tested one of the files. The file has
permissions:
-rwxrwxrwx 1 root root (full permissions)
Just to make double sure, I also VI'd the file
Dirk
Disclaimer: http://196.33.167.70/disclaimer
_______________________________________________
Linux-users mailing list ( Linux-users at linux-sxs.org )
Unsub/Password/Etc:
http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
*** OFF TOPIC conversations should get sent to general at linux-sxs.org.
This rule will be strictly enforced. ***
Need to chat further on this subject? Check out #linux-users on
irc.linux-sxs.org !
Disclaimer: http://196.33.167.70/disclaimer
More information about the Linux-users
mailing list