LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2009, 11:43 AM   #1
Raakh
Member
 
Registered: May 2007
Posts: 128

Rep: Reputation: 15
Permissions


Hello,

Presently my permissions are:
-bash-3.1$ ls -l /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
/bin/oracle-rwxr-x--- 1 oracle dba 74016852 Feb 19 2006 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle

but I want to set permissions like this:
-rwsr-s--x 1 oracle dba 74016852 Feb 19 2006 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle

Kindly help

Thanks & best regards
 
Old 04-04-2009, 12:22 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
For an explanation please see: http://www.zzee.com/solutions/chmod-help.shtml

Code:
chmod 6751 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle
 
Old 04-04-2009, 03:54 PM   #3
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
for better understanding
read - 4
write - 2
execute - 1

sticky bit - 1
SUID - 2
SGID - 4

x | xxx | xxx | xxx
rwx rwx rwx
| | |
owner group others

1st bit stands for sticky bit, suid, sgid

so as u needed

-rwsr-s--x, it'l be

- | rwxS | r-xS | --x

6 7 5 1

SUID & SGID = 2+4=6
owner->rwx = 4+2+1=7
group->r-x = 4+1=5
others->--x = 1=1

so it becomes as " chmod 6751 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle "
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions giraf Debian 2 08-22-2006 11:27 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
permissions booshway0 Linux - General 5 06-28-2004 10:32 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration