Readonly access


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Readonly access
# 1  
Old 01-31-2007
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 oracleSmilieinstall
Regards
Faruque
# 2  
Old 01-31-2007
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 oracleSmilieinstall
Regards
Faruque
What is the permission settings on the filesystem (drwxrwxr--)?
# 3  
Old 01-31-2007
Quote:
Originally Posted by johnf
What is the permission settings on the filesystem (drwxrwxr--)?

-rw-r-----
# 4  
Old 01-31-2007
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  
Old 01-31-2007
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  
Old 01-31-2007
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  
Old 01-31-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Root Access not working as FileSystem in ReadOnly Mode

Hi Experts I am facing a problem wherein Root Access not working as FileSystem in ReadOnly Mode. Due to a Disk failure, my Filesystem went into Read-Only mode: report@xx> grep root /proc/mounts /dev/root / ext3 ro,data=ordered 0 0 Now, I am not able to login using root user on the... (5 Replies)
Discussion started by: navkanwal
5 Replies

2. Shell Programming and Scripting

removing readonly behaviour from variable

Hi, I am new to shell programming. I just wanted to know if I set a variable to readonly. How do I revert it back to normal. name="some_name" readonly name Now I want to make name variable back to it normal, on which I can perform write operation too. Thanks (3 Replies)
Discussion started by: dearvivekkumar
3 Replies

3. UNIX for Dummies Questions & Answers

Set readonly

I'm confused using hdparm -r1 /dev/sda9 although it shows readonly set to 1 (on) - I can touch a file and edit and save it. why? (7 Replies)
Discussion started by: daWonderer
7 Replies

4. Linux

root filesystem goes readonly

I see this when tried to create a dir using root fstab entries are pretty normal tried to remount with rw but it is still the same block device /dev/sda2 is write-protected ---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ---------- fstab entry ... (4 Replies)
Discussion started by: robo
4 Replies

5. Debian

Force readonly mount always.

I would want one of my partition to be mounted read only always... How to do that ? 1. /etc/fstab I know that, in options we can give ro -- so when the machine boots up or 'mount -a' it will be mounted read only. But i dont want that to be mounted when machine boots up. We will mount that... (3 Replies)
Discussion started by: thegeek
3 Replies

6. Cybersecurity

File owned by oracle user and dba group need readonly access to other users

Under oracle user file abc.txt was created. Oracle user belong to dba group on UNIX Server. However other non Oracle users which belongs to some other network groups need read only access to this file. Every time when I login as other then oracle user and try to view this file it saying that I... (2 Replies)
Discussion started by: groosha
2 Replies

7. Shell Programming and Scripting

Readonly

After I issused $readonly THIN. How to change back the varaibale from read only to writeable? (1 Reply)
Discussion started by: Paris Heng
1 Replies

8. UNIX for Advanced & Expert Users

how to unset the readonly variable

Hi All, May be this is a very simple question... $ b=8 $ readonly b $ echo $b 8 $ b=90 -bash: b: readonly variable $ unset b -bash: unset: b: cannot unset: readonly variable I m not able to change the readonly mode of variable b Please help me out.. Thanks Nidhi (2 Replies)
Discussion started by: Nidhi2177
2 Replies

9. UNIX for Dummies Questions & Answers

Making files readonly with vi?

Hi, I'm new at this whole Unix thing, but definately learning (lots of fun)... and I was wondering - how do you make a file read-only with vi? I don't mean how do you load up vi in read-only mode, but how do you save a file (or flag a file, or whatever) in vi to read-only? How do you make it... (2 Replies)
Discussion started by: Flyguy
2 Replies
Login or Register to Ask a Question