Sponsored Content
Top Forums Shell Programming and Scripting see content of a file without permission Post 302231061 by silvermoon on Monday 1st of September 2008 12:29:34 PM
Old 09-01-2008
Quote:
Originally Posted by kmuqalled
Hi
I need to your help. I have text file in solaris system but I don't have read or write permissions on this file also I don't have the root password.
There is any way to see the content of this file?
If you have an idea of how about the contents of this file, this link may help:

Learn the DD command - LinuxQuestions.org
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Permission

Hi, When I listed one directory in Sun, it showed that : -rwsr-xr-x 1 root bsmbin 78004 Oct 21 2004 bsmprsm I don't know meaning of the character "s" in "rws" above. I have searched in Sun admin documents but no result. Would you please explain it ? :) Thank you so much. (1 Reply)
Discussion started by: msg098
1 Replies

2. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies

3. Shell Programming and Scripting

Need help with awk - how to read a content of a file from every file from file list

Hi Experts. I need to list the file and the filename comes from the file ListOfFile.txt. Basicly I have a filename "ListOfFile.txt" and it contain Example of ListOfFile.txt /home/Dave/Program/Tran1.P /home/Dave/Program/Tran2.P /home/Dave/Program/Tran3.P /home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies

4. Solaris

file permission

hi frnds can u explain /etc/shadow file have read and write permissions for root only but while normal user changes his passwd it also updated in that file whats the logic behind that. (2 Replies)
Discussion started by: sravan ega
2 Replies

5. Shell Programming and Scripting

Sed: replace content from file with the content from file

Hi, I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C. Thanks a lot!! Here is a sample of my question. e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies

6. Shell Programming and Scripting

Comparing file ownership/permission and content of files located on two different servers

Hi All, can some one suggest me a tool to compare file ownership/permission and contents of files located at two different unix servers? Thanks, Pranav (1 Reply)
Discussion started by: Pranav Bhasker
1 Replies

7. Shell Programming and Scripting

Change the file name and copy old file content to new file names.

Hi, I have a files in a directory as below :- ls -1 mqdepth-S1STC02 proc-mq-S1STC01 proc-mq-S1STC02 proc-mq-S1STC03 Whereever i have S1STC i need to copy them into new file with file name S2STC. expected output :- ls -1 mqdepth-S2STC02 proc-mq-S2STC01 proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies

8. Shell Programming and Scripting

How to remove exisiting file content from a file and have to append new file content?

hi all, i had the below script x=`cat input.txt |wc -1` awk 'NR>1 && NR<'$x' ' input.txt > output.txt by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies

9. Shell Programming and Scripting

Insert content of a file to another file at a line number which is given by third file

Hi friends, here is my problem. I have three files like this.. cat file1.txt ======= unix is best unix is best linux is best unix is best linux is best linux is best unix is best unix is best cat file2.txt ======== Windows performs better Mac OS performs better Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
Courriel::Part::Single(3pm)				User Contributed Perl Documentation			       Courriel::Part::Single(3pm)

NAME
Courriel::Part::Single - A part which does not contain other parts, only content VERSION
version 0.29 SYNOPSIS
my $headers = $part->headers(); my $ct = $part->content_type(); my $content = $part->content(); print ${$content}; DESCRIPTION
This class represents a single part that does not contain other parts, just content. API
This class provides the following methods: Courriel::Part::Single->new( ... ) This method creates a new part object. It accepts the following parameters: o content This can either be a string or a reference to a scalar. It should be in Perl's native utf-8 encoding and not a byte string. If you pass a reference, then the scalar underlying the reference may be modified, so don't pass in something you don't want modified. o encoded_content This can either be a string or a reference to a scalar. If you pass a reference, then the scalar underlying the reference may be modified, so don't pass in something you don't want modified. o content_type A Courriel::Header::ContentType object. This will default to one with the mime type "text/plain". o disposition A Courriel::Header::Disposition object representing this part's content disposition. This will default to "inline" with no other attributes. o encoding The Content-Transfer-Encoding for this part. This defaults to the value found in the part's headers, or "8bit" if no header is found. o headers A Courriel::Headers object containing headers for this part. You must pass a "content" or "encoded_content" value when creating a new part, but there's really no point in passing both. It is strongly recommended that you pass a "content" parameter and letting this module do the encoding for you internally. $part->content() This returns returns the decoded content for the part. It will be in Perl's native utf-8 encoding, decoded from whatever character set the content is in. $part->encoded_content() This returns returns the encoded content for the part. $part->mime_type() Returns the mime type for this part. $part->has_charset() Return true if the part has a charset defined. Binary attachments will usually not have this defined. $part->charset() Returns the charset for this part. $part->is_inline(), $part->is_attachment() These methods return boolean values based on the part's content disposition. $part->filename() Returns the filename from the part's content disposition, if any. $part->content_type() Returns the Courriel::Header::ContentType object for this part. $part->disposition() Returns the Courriel::Header::Disposition object for this part. $part->encoding() Returns the encoding for the part. $part->headers() Returns the Courriel::Headers object for this part. $part->is_multipart() Returns false. $part->container() Returns the Courriel or Courriel::Part::Multipart object to which this part belongs, if any. This is set when the part is added to another object. $part->content_ref() This returns returns a reference to a scalar containing the decoded content for the part. $part->encoded_content_ref() This returns returns a reference to a scalar containing the encoded content for the part, without any decoding. $part->as_string() Returns the part as a string, along with its headers. Lines will be terminated with " ". $part->stream_to( output => $output ) This method will send the stringified part to the specified output. The output can be a subroutine reference, a filehandle, or an object with a "print()" method. The output may be sent as a single string, as a list of strings, or via multiple calls to the output. See the "as_string()" method for documentation on the "charset" parameter. ROLES
This class does the "Courriel::Role::Part" and Courriel::Role::Streams roles. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.14.2 2012-03-07 Courriel::Part::Single(3pm)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy