I'm afraid I really don't know much about your distro, so I'll leave that to people that actually know what they're talking about. Setting (or un-setting) a bit, however, goes like this:
Here's what that means: To set a bit, first determine who you want to set it for: the (u)ser, the (g)roup or all (o)thers. Then determine the operation, or what you want to do: Do you want to add (+) or remove (-) the bit? Finally, what bit do you want to add or remove? You can do (r)ead, (w)rite or e(x)ecute bits.
You want to remove (-) (w)rite permissions from the (g)roup. That gives you:
I'm afraid I really don't know much about your distro, so I'll leave that to people that actually know what they're talking about. Setting (or un-setting) a bit, however, goes like this:
Here's what that means: To set a bit, first determine who you want to set it for: the (u)ser, the (g)roup or all (o)thers. Then determine the operation, or what you want to do: Do you want to add (+) or remove (-) the bit? Finally, what bit do you want to add or remove? You can do (r)ead, (w)rite or e(x)ecute bits.
You want to remove (-) (w)rite permissions from the (g)roup. That gives you:
Before you start get a complete listing of all files you intend to change, before you change anything. Keep it in a safe place.
This looks like an Oracle distribution of Red Hat -
If that is the case, they mean any executable file under the /usr tree that is owned by root. Not necessarily directories. /usr directories should be owned by 0:1 (root:bin) or root:[some other number under 20] and should already be rwxr-wr-x, except some oddball man pages
Also, the oracle executables in $ORACLE_HOME/bin, as an example:
/oracle/home/product/11.0.2/bin.
If you have weblogic, apache, etc then the same thing for each independent installation - probably the files are in /opt, they may also be in /usr/local/bin.
Be careful. You can break applications pretty easily if the app legitimately needs to write some files. So look at every file permission and be sure they are executables and not links:
Oracle Linux 6.6
grid user's secondary groups are asmadmin,asmdba,asmoper and dba
# id -a grid
uid=638(grid) gid=2000(oinstall) groups=2000(oinstall),2100(asmadmin),2200(dba),2300(asmdba),2301(asmoper)
I want to remove dba as the secondary group for grid and keep the remaining ones.
ie. I... (5 Replies)
Hi,
How can I remove duplicates from a file based on group on other column? for example:
Test1|Test2|Test3|Test4|Test5
Test1|Test6|Test7|Test8|Test5
Test1|Test9|Test10|Test11|Test12
Test1|Test13|Test14|Test15|Test16
Test17|Test18|Test19|Test20|Test21
Test17|Test22|Test23|Test24|Test5
... (2 Replies)
Hi,
I have a 64-bit RHEL 5.5. In order to make a particular product work I want to uninstall some rpms which is specific to 64 bit. Wondering if anyone has a way how to remove the 64-bit rpm without disturbing the i386 rpms.
What I find when I googled is all are removing forcefully, but... (2 Replies)
How would i write a command that can find all the objects under the etc directory that have group write permission enabled and have not been accessed in the last X days.
This is what i got from internet souce but i m not able to modify it according to my distribution.
find /etc -perm... (1 Reply)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
i have some 350 files in a dir: i want to remove them in one shot,
ls -ltr | grep 'Sep 15' | head -350
the above command gives me those 350 files i need to remove them,how to implement remove logic here in this command?
i can get those 350 files using the above command only and therefore... (6 Replies)
folks;
I created a new users on my SUSE box and i need to give this user/group a read write access to one specific folder. here's the details:
- I created new user "funny" under group "users".
- I need to give this user "funny" a read/write access to another directory that is owned by "root".... (3 Replies)
Whenever I create a new file the group name is "dnn" and the file permissions are "-rw-r--r--".
How do I get it so when I create files (with vi or other programs) that the default group is "sss" and the permissions are 770?
(I am running HP-UNIX)
Thanks,
GoldFish (2 Replies)