The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to unset the readonly variable Nidhi2177 UNIX for Advanced & Expert Users 2 09-12-2007 05:35 AM
How to access CD sam71 UNIX for Dummies Questions & Answers 2 07-20-2005 02:53 PM
Making files readonly with vi? Flyguy UNIX for Dummies Questions & Answers 2 11-15-2003 06:52 AM
cp: cannot access nguda Shell Programming and Scripting 4 11-07-2003 05:52 PM
Need help to access/mount so to access folder/files on a Remote System using Linux OS S.Vishwanath UNIX for Dummies Questions & Answers 2 07-30-2001 08:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2007
faruque.ahmed faruque.ahmed is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 7
Readonly access

Hi,
I have create a user using the following command
useradd -d /home/rozan -s /bin/bash -c "Rozan ahmed" -g dba rozan

I would like to give her only the read only access to

$BDUMP_HOME/alert.log file

The owner of the file is oracleinstall
Regards
Faruque
  #2 (permalink)  
Old 01-31-2007
johnf johnf is offline
Registered User
  
 

Join Date: May 2006
Location: England
Posts: 284
Quote:
Originally Posted by faruque.ahmed
Hi,
I have create a user using the following command
useradd -d /home/rozan -s /bin/bash -c "Rozan ahmed" -g dba rozan

I would like to give her only the read only access to

$BDUMP_HOME/alert.log file

The owner of the file is oracleinstall
Regards
Faruque
What is the permission settings on the filesystem (drwxrwxr--)?
  #3 (permalink)  
Old 01-31-2007
faruque.ahmed faruque.ahmed is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 7
Quote:
Originally Posted by johnf
What is the permission settings on the filesystem (drwxrwxr--)?

-rw-r-----
  #4 (permalink)  
Old 01-31-2007
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
Quote:
Originally Posted by faruque.ahmed
-rw-r-----
Make it -rw-r--r-- or if you don't want to give read access to every one then make that particular user a member of the same group which oracle_install belongs.
  #5 (permalink)  
Old 01-31-2007
faruque.ahmed faruque.ahmed is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 7
Quote:
Originally Posted by tayyabq8
Make it -rw-r--r-- or if you don't want to give read access to every one then make that particular user a member of the same group which oracle_install belongs.

SSH Secure Shell 3.2.9 (Build 283)
Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/

This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.


Last login: Wed Jan 31 21:47:23 2007 from 10.13.8.87
[root@oper-db ~]# userdel rozan
[root@oper-db ~]# useradd -d /home/rozan -s /bin/bash -c "Rozan Ahmed" -g oinstall rozan
[root@oper-db ~]# su - oracle
[oracle@oper-db ~]$ cd /uo01/app/oracle/admin/operdb/bdump/
[oracle@oper-db bdump]$ chmod 644 alert_operdb.log
[oracle@oper-db bdump]$ ls -ltr
total 332
-rw-r----- 1 oracle oinstall 808 Jan 31 02:41 operdb_lgwr_7864.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc1_7946.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc0_7944.trc
-rw-r----- 1 oracle oinstall 1072 Jan 31 02:42 operdb_lgwr_7924.trc
-rw-r----- 1 oracle oinstall 675 Jan 31 02:47 operdb_arc0_7988.trc
-rw-r----- 1 oracle oinstall 813 Jan 31 02:47 operdb_arc2_7992.trc
-rw-r----- 1 oracle oinstall 1019 Jan 31 02:49 operdb_arc1_7990.trc
-rw-r----- 1 oracle oinstall 983 Jan 31 02:49 operdb_lgwr_7968.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 02:55 operdb_arc2_11996.trc
-rw-r----- 1 oracle oinstall 1385 Jan 31 03:55 operdb_arc1_11994.trc
-rw-r----- 1 oracle oinstall 4612 Jan 31 03:58 operdb_arc0_11992.trc
-rw-r----- 1 oracle oinstall 5635 Jan 31 03:59 operdb_pmon_11964.trc
-rw-r----- 1 oracle oinstall 1077 Jan 31 03:59 operdb_lgwr_11972.trc
-rw-r----- 1 oracle oinstall 801 Jan 31 04:12 operdb_p002_18150.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p001_18148.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p000_18146.trc
-rw-r----- 1 oracle oinstall 3860 Jan 31 04:13 operdb_dbw0_18094.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 04:18 operdb_arc2_18156.trc
-rw-r----- 1 oracle oinstall 955 Jan 31 22:00 operdb_lgwr_18096.trc
-rw-r--r-- 1 oracle oinstall 58428 Jan 31 22:00 alert_operdb.log
-rw-r----- 1 oracle oinstall 16310 Feb 1 02:18 operdb_arc0_18152.trc
-rw-r----- 1 oracle oinstall 76204 Feb 1 02:19 operdb_arc1_18154.trc
[oracle@oper-db bdump]$ exit
logout
[root@oper-db ~]#
[root@oper-db ~]# su - rozan
[rozan@oper-db ~]$ cd /uo01/app/oracle/admin/operdb/bdump/
[rozan@oper-db bdump]$ ls -ltr
total 332
-rw-r----- 1 oracle oinstall 808 Jan 31 02:41 operdb_lgwr_7864.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc1_7946.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc0_7944.trc
-rw-r----- 1 oracle oinstall 1072 Jan 31 02:42 operdb_lgwr_7924.trc
-rw-r----- 1 oracle oinstall 675 Jan 31 02:47 operdb_arc0_7988.trc
-rw-r----- 1 oracle oinstall 813 Jan 31 02:47 operdb_arc2_7992.trc
-rw-r----- 1 oracle oinstall 1019 Jan 31 02:49 operdb_arc1_7990.trc
-rw-r----- 1 oracle oinstall 983 Jan 31 02:49 operdb_lgwr_7968.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 02:55 operdb_arc2_11996.trc
-rw-r----- 1 oracle oinstall 1385 Jan 31 03:55 operdb_arc1_11994.trc
-rw-r----- 1 oracle oinstall 4612 Jan 31 03:58 operdb_arc0_11992.trc
-rw-r----- 1 oracle oinstall 5635 Jan 31 03:59 operdb_pmon_11964.trc
-rw-r----- 1 oracle oinstall 1077 Jan 31 03:59 operdb_lgwr_11972.trc
-rw-r----- 1 oracle oinstall 801 Jan 31 04:12 operdb_p002_18150.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p001_18148.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p000_18146.trc
-rw-r----- 1 oracle oinstall 3860 Jan 31 04:13 operdb_dbw0_18094.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 04:18 operdb_arc2_18156.trc
-rw-r----- 1 oracle oinstall 955 Jan 31 22:00 operdb_lgwr_18096.trc
-rw-r--r-- 1 oracle oinstall 58428 Jan 31 22:00 alert_operdb.log
-rw-r----- 1 oracle oinstall 16310 Feb 1 02:18 operdb_arc0_18152.trc
-rw-r----- 1 oracle oinstall 76318 Feb 1 02:21 operdb_arc1_18154.trc
[rozan@oper-db bdump]$ vi alert_operdb.log
Wed Jan 31 02:39:59 2007
[rozan@oper-db bdump]$ ls
alert_operdb.log operdb_arc1_18154.trc operdb_dbw0_18094.trc operdb_p000_18146.trc
operdb_arc0_11992.trc operdb_arc1_7946.trc operdb_lgwr_11972.trc operdb_p001_18148.trc
operdb_arc0_18152.trc operdb_arc1_7990.trc operdb_lgwr_18096.trc operdb_p002_18150.trc
operdb_arc0_7944.trc operdb_arc2_11996.trc operdb_lgwr_7864.trc operdb_pmon_11964.trc
operdb_arc0_7988.trc operdb_arc2_18156.trc operdb_lgwr_7924.trc
operdb_arc1_11994.trc operdb_arc2_7992.trc operdb_lgwr_7968.trc
[rozan@oper-db bdump]$ rm -rf operdb_lgwr_7968.trc
[rozan@oper-db bdump]$
[rozan@oper-db bdump]$ ls operdb_lgwr_7968.trc
ls: operdb_lgwr_7968.trc: No such file or directory
[rozan@oper-db bdump]$





i would not like to give her the permission to delete any files



regards
  #6 (permalink)  
Old 01-31-2007
maheshwin maheshwin is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 55
Quote:
Originally Posted by faruque.ahmed
SSH Secure Shell 3.2.9 (Build 283)
Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/

This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.


Last login: Wed Jan 31 21:47:23 2007 from 10.13.8.87
[root@oper-db ~]# userdel rozan
[root@oper-db ~]# useradd -d /home/rozan -s /bin/bash -c "Rozan Ahmed" -g oinstall rozan
[root@oper-db ~]# su - oracle
[oracle@oper-db ~]$ cd /uo01/app/oracle/admin/operdb/bdump/
[oracle@oper-db bdump]$ chmod 644 alert_operdb.log
[oracle@oper-db bdump]$ ls -ltr
total 332
-rw-r----- 1 oracle oinstall 808 Jan 31 02:41 operdb_lgwr_7864.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc1_7946.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc0_7944.trc
-rw-r----- 1 oracle oinstall 1072 Jan 31 02:42 operdb_lgwr_7924.trc
-rw-r----- 1 oracle oinstall 675 Jan 31 02:47 operdb_arc0_7988.trc
-rw-r----- 1 oracle oinstall 813 Jan 31 02:47 operdb_arc2_7992.trc
-rw-r----- 1 oracle oinstall 1019 Jan 31 02:49 operdb_arc1_7990.trc
-rw-r----- 1 oracle oinstall 983 Jan 31 02:49 operdb_lgwr_7968.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 02:55 operdb_arc2_11996.trc
-rw-r----- 1 oracle oinstall 1385 Jan 31 03:55 operdb_arc1_11994.trc
-rw-r----- 1 oracle oinstall 4612 Jan 31 03:58 operdb_arc0_11992.trc
-rw-r----- 1 oracle oinstall 5635 Jan 31 03:59 operdb_pmon_11964.trc
-rw-r----- 1 oracle oinstall 1077 Jan 31 03:59 operdb_lgwr_11972.trc
-rw-r----- 1 oracle oinstall 801 Jan 31 04:12 operdb_p002_18150.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p001_18148.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p000_18146.trc
-rw-r----- 1 oracle oinstall 3860 Jan 31 04:13 operdb_dbw0_18094.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 04:18 operdb_arc2_18156.trc
-rw-r----- 1 oracle oinstall 955 Jan 31 22:00 operdb_lgwr_18096.trc
-rw-r--r-- 1 oracle oinstall 58428 Jan 31 22:00 alert_operdb.log
-rw-r----- 1 oracle oinstall 16310 Feb 1 02:18 operdb_arc0_18152.trc
-rw-r----- 1 oracle oinstall 76204 Feb 1 02:19 operdb_arc1_18154.trc
[oracle@oper-db bdump]$ exit
logout
[root@oper-db ~]#
[root@oper-db ~]# su - rozan
[rozan@oper-db ~]$ cd /uo01/app/oracle/admin/operdb/bdump/
[rozan@oper-db bdump]$ ls -ltr
total 332
-rw-r----- 1 oracle oinstall 808 Jan 31 02:41 operdb_lgwr_7864.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc1_7946.trc
-rw-r----- 1 oracle oinstall 616 Jan 31 02:42 operdb_arc0_7944.trc
-rw-r----- 1 oracle oinstall 1072 Jan 31 02:42 operdb_lgwr_7924.trc
-rw-r----- 1 oracle oinstall 675 Jan 31 02:47 operdb_arc0_7988.trc
-rw-r----- 1 oracle oinstall 813 Jan 31 02:47 operdb_arc2_7992.trc
-rw-r----- 1 oracle oinstall 1019 Jan 31 02:49 operdb_arc1_7990.trc
-rw-r----- 1 oracle oinstall 983 Jan 31 02:49 operdb_lgwr_7968.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 02:55 operdb_arc2_11996.trc
-rw-r----- 1 oracle oinstall 1385 Jan 31 03:55 operdb_arc1_11994.trc
-rw-r----- 1 oracle oinstall 4612 Jan 31 03:58 operdb_arc0_11992.trc
-rw-r----- 1 oracle oinstall 5635 Jan 31 03:59 operdb_pmon_11964.trc
-rw-r----- 1 oracle oinstall 1077 Jan 31 03:59 operdb_lgwr_11972.trc
-rw-r----- 1 oracle oinstall 801 Jan 31 04:12 operdb_p002_18150.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p001_18148.trc
-rw-r----- 1 oracle oinstall 799 Jan 31 04:12 operdb_p000_18146.trc
-rw-r----- 1 oracle oinstall 3860 Jan 31 04:13 operdb_dbw0_18094.trc
-rw-r----- 1 oracle oinstall 815 Jan 31 04:18 operdb_arc2_18156.trc
-rw-r----- 1 oracle oinstall 955 Jan 31 22:00 operdb_lgwr_18096.trc
-rw-r--r-- 1 oracle oinstall 58428 Jan 31 22:00 alert_operdb.log
-rw-r----- 1 oracle oinstall 16310 Feb 1 02:18 operdb_arc0_18152.trc
-rw-r----- 1 oracle oinstall 76318 Feb 1 02:21 operdb_arc1_18154.trc
[rozan@oper-db bdump]$ vi alert_operdb.log
Wed Jan 31 02:39:59 2007
[rozan@oper-db bdump]$ ls
alert_operdb.log operdb_arc1_18154.trc operdb_dbw0_18094.trc operdb_p000_18146.trc
operdb_arc0_11992.trc operdb_arc1_7946.trc operdb_lgwr_11972.trc operdb_p001_18148.trc
operdb_arc0_18152.trc operdb_arc1_7990.trc operdb_lgwr_18096.trc operdb_p002_18150.trc
operdb_arc0_7944.trc operdb_arc2_11996.trc operdb_lgwr_7864.trc operdb_pmon_11964.trc
operdb_arc0_7988.trc operdb_arc2_18156.trc operdb_lgwr_7924.trc
operdb_arc1_11994.trc operdb_arc2_7992.trc operdb_lgwr_7968.trc
[rozan@oper-db bdump]$ rm -rf operdb_lgwr_7968.trc
[rozan@oper-db bdump]$
[rozan@oper-db bdump]$ ls operdb_lgwr_7968.trc
ls: operdb_lgwr_7968.trc: No such file or directory
[rozan@oper-db bdump]$





i would not like to give her the permission to delete any files







regards
try use umask (umask 744)
  #7 (permalink)  
Old 01-31-2007
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
Quote:
$ chmod 644 alert_operdb.log
Why are you doing that? That means file alert_operdb.log is readable to every one, then you don't need to make user rozan a member of oinstall, because rozan can access that file with 644 even if she is not a member of oinstall group.
Quote:
i would not like to give her the permission to delete any files
Parent directory should have 750 permissions.

Regards,
Tayyab
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0