Sponsored Content
Full Discussion: Hiding files in unix/linux
Top Forums UNIX for Advanced & Expert Users Hiding files in unix/linux Post 70377 by chuckuykendall on Thursday 28th of April 2005 09:36:52 AM
Old 04-28-2005
Perhaps you can use UNIX ACL's (Access Control List). I'm not sure if it's in any UNIX other than AIX or HP-UX, but others on this board may be able to help there. I normally wouldn't use ACL's, but for such a situation (where you want to hide files, or deny read access to files, for one user) it may be a good solution. ACL's are exception-bases permissions on files and directories that pre-empt normal permissions. On AIX, you can do a man on the commands acledit, aclget, and aclput. On HP-UX, you can do a man on the commands chacl, getacl, lsacl, and setacl.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I/ps pls for migration of oraboot & orabackup files from Tru64 Unix to Linux 3.0

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (1 Reply)
Discussion started by: marconi
1 Replies

2. Linux

I/ps pls for migration of oraboot & orabackup files from Tru64 Unix to Linux 3.0

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (2 Replies)
Discussion started by: marconi
2 Replies

3. Shell Programming and Scripting

Regarding migration (from Tru64 Unix to Linux 3.0) of Files :- oraboot and orabackup

Hi, I have 2 Files - oraboot and orabackup, which are correct Files in Tru64 Environment and I am trying to check whether the Files are running properly in my current Linux 3.0. (basically trying to migrate them from Tru64 to Linux 3.0). The files are neither Shell nor Perl, and just have the... (1 Reply)
Discussion started by: marconi
1 Replies

4. UNIX for Dummies Questions & Answers

Uploading files from Mac to Unix/Linux via ssh

Ok. I am using the Terminal window to ssh into a unix server. I am not sure how to copy a file from my mac onto the unix server. What command do I enter and how do I type the file I want to upload Example. Say my file is named Test1.doc and it is on the usr/me/test/working/ directory and I want... (3 Replies)
Discussion started by: libertyforall
3 Replies

5. Shell Programming and Scripting

Stress testing php files at Unix/Linux Command line

Hi, Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt. I tried torture.pl but it is not working after20 concurrent threads/users. as it is very urgent for me..please suggest ur ideas asap. thanks (5 Replies)
Discussion started by: Malleswari
5 Replies

6. Shell Programming and Scripting

Convert directory of text files to Unix/Linux Line Ending

I need help converting a directory of *.txt with Windows line ending to UTF-8 character encoding and Unix/Linux line ending. (9 Replies)
Discussion started by: chipperuga
9 Replies

7. Shell Programming and Scripting

Management application user rights on the files in a Unix / Linux

good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux I need for college .. .. and not told us no clue .. thank you (1 Reply)
Discussion started by: alex90
1 Replies

8. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies

9. Shell Programming and Scripting

Password hiding in UNIX

Hi guys, I use STTY command to make the password invisible. Now I need to write the password into another file pwd.txt, but in an invisible manner, something like ******. Another thing is to when I echo the content of pwd.txt I get the password I actually typed. Thanks guys. Help me out. (5 Replies)
Discussion started by: mohanalakshmi
5 Replies

10. Programming

Hiding commnd line arguments in ps command on Linux

Hi Unix lovers, I am trying to seek an explanation for a simple looking code - why it works? I found below program which hide command line argument in ps command. #include <string.h> int main(int argc, char **argv) { // process command line arguments.... // hide command... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
Commands Reference, Volume 1, a - c

acledit_Command

  Purpose

   Edits the access control information of a file.

  Syntax

   acledit [ -t ACL_type ] [ -v ] FileObject

  Description

   The	acledit command lets you change the access control infor-
mation of the
   file specified by the FileObject parameter. The  command  dis-
plays the
   current  access  control  information  and lets the file owner
change it with
   the editor specified by the EDITOR environment  variable.  Be-
fore making any
   changes permanent, the command asks if you want to proceed.

   Note:
   The	EDITOR environment variable must be specified with a com-
plete path
   name; otherwise, the acledit command will  fail.  The  maximum
size of the
   ACL data is dependent on the ACL type.

   The	access	control  information displayed depends on the ACL
type
   associated with the file system object. Information	typically
includes
   access  control  entries displayed for owner and others. Also,
file mode
   bits associated with the object could be displayed.

   The following is an example of the access control  information
of a file:

	 attributes: SUID
	 base permissions:
     owner  (frank): rw-
     group (system): r-x
     others	   : ---
	 extended permissions:
     enabled
	 permit    rw-	  u:dhs
	 deny	   r--	  u:chas,    g:system
	 specify   r--	  u:john,    g:gateway, g:mail
	 permit    rw-	  g:account, g:finance

     Note: If the acledit command is operating in a trusted path,
the editor
     must have the trusted process attribute set.

  Flags

      This optional input specifies the ACL type in which the ACL
data will
      be  stored at the end of the ACL editing process. If no op-
tion is
      specified, then the ACL currently associated with the  file
system
      object  will  be	edited	in its ACL type format. If an ACL
type is
   -t specified with this flag, then it is assumed that  user  is
trying to
      modify  the current ACL type and store the ACL in a new ACL
type format.
      When this flag is specified and the ACL type does not match
the type
      that exists currently, it is expected that user will modify
the
      contents of the ACL data to format into the  new	ACL  type
specific
      format before saving.
      Displays the ACL information in Verbose mode. Comment lines
will be
      added to explain more details about the ACL associated with
the FS
   -v  object. These comment lines are generated when the command
is executed
      and do not reside anywhere persistently. Hence, any modifi-
cations to
      the same will be lost when acledit is exited.

  Security

   Access Control: This command should be a standard user command
and have
   the trusted computing base attribute.

   Files Accessed:

   Mode   File
   x	  /usr/bin/aclget
   x	  /usr/bin/aclput

   Auditing Events: If the auditing subsystem has  been  properly
configured
   and	is enabled, the acledit command will generate the follow-
ing audit
   record (event) every time the command is executed:

   Event      Information
   FILE_Acl   Lists access controls.

   See "Setting up Auditing" in Security for more  details  about
how to
   properly  select  and group audit events, and how to configure
audit event
   data collection.

  Examples

   To edit the access control information of the plans file,  en-
ter:

	 acledit plans

  Files

   /usr/bin/acledit		  Contains the acledit command.

  Related Information

   The aclget command, aclput command, auditpr command, chmod
   command.

   Access  control  lists  in Operating system and device manage-
ment.

   The Auditing Overview in Security explains more  about  audits
and audit
   events.

   For	more information about the identification and authentica-
tion of users,
   discretionary access control, the trusted computing base,  and
auditing,
   refer to Securing the network in Security.

________________________________________________________________________________

		      Commands Reference, Volume 1, a - c

acledit_Command

  Purpose

   Edits the access control information of a file.

  Syntax

   acledit [ -t ACL_type ] [ -v ] FileObject

  Description

   The acledit command lets you change the access control  infor-
mation of the
   file  specified  by the FileObject parameter. The command dis-
plays the
   current access control information and  lets  the  file  owner
change it with
   the	editor	specified by the EDITOR environment variable. Be-
fore making any
   changes permanent, the command asks if you want to proceed.

   Note:
   The EDITOR environment variable must be specified with a  com-
plete path
   name;  otherwise,  the  acledit command will fail. The maximum
size of the
   ACL data is dependent on the ACL type.

   The access control information displayed depends  on  the  ACL
type
   associated  with the file system object. Information typically
includes
   access control entries displayed for owner and  others.  Also,
file mode
   bits associated with the object could be displayed.

   The	following is an example of the access control information
of a file:

	 attributes: SUID
	 base permissions:
     owner  (frank): rw-
     group (system): r-x
     others	   : ---
	 extended permissions:
     enabled
	 permit    rw-	  u:dhs
	 deny	   r--	  u:chas,    g:system
	 specify   r--	  u:john,    g:gateway, g:mail
	 permit    rw-	  g:account, g:finance

     Note: If the acledit command is operating in a trusted path,
the editor
     must have the trusted process attribute set.

  Flags

      This optional input specifies the ACL type in which the ACL
data will
      be stored at the end of the ACL editing process. If no  op-
tion is
      specified,  then the ACL currently associated with the file
system
      object will be edited in its ACL type  format.  If  an  ACL
type is
   -t  specified  with this flag, then it is assumed that user is
trying to
      modify the current ACL type and store the ACL in a new  ACL
type format.
      When this flag is specified and the ACL type does not match
the type
      that exists currently, it is expected that user will modify
the
      contents	of  the  ACL data to format into the new ACL type
specific
      format before saving.
      Displays the ACL information in Verbose mode. Comment lines
will be
      added to explain more details about the ACL associated with
the FS
   -v object. These comment lines are generated when the  command
is executed
      and do not reside anywhere persistently. Hence, any modifi-
cations to
      the same will be lost when acledit is exited.

  Security

   Access Control: This command should be a standard user command
and have
   the trusted computing base attribute.

   Files Accessed:

   Mode   File
   x	  /usr/bin/aclget
   x	  /usr/bin/aclput

   Auditing  Events:  If the auditing subsystem has been properly
configured
   and is enabled, the acledit command will generate the  follow-
ing audit
   record (event) every time the command is executed:

   Event      Information
   FILE_Acl   Lists access controls.

   See	"Setting  up Auditing" in Security for more details about
how to
   properly select and group audit events, and how  to	configure
audit event
   data collection.

  Examples

   To  edit the access control information of the plans file, en-
ter:

	 acledit plans

  Files

   /usr/bin/acledit		  Contains the acledit command.

  Related Information

   The aclget command, aclput command, auditpr command, chmod
   command.

   Access control lists in Operating system  and  device  manage-
ment.

   The	Auditing  Overview in Security explains more about audits
and audit
   events.

   For more information about the identification and  authentica-
tion of users,
   discretionary  access control, the trusted computing base, and
auditing,
   refer to Securing the network in Security.
All times are GMT -4. The time now is 04:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy