05-19-2005
permission
Hi,
How can i see the permission for directory not for the file.
and the group i was in.
Thanks
sam71
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I wanted to add /home/oracle/sql to my path so that from which ever directory i connect to sqlplus i should be able to source the .sql files sitting in /home/oracle/sql. Also,
this is what i tried but it doenst work
# Set up the search paths:
export ... (2 Replies)
Discussion started by: jigarlakhani
2 Replies
2. UNIX for Dummies Questions & Answers
The “set -o vi” command won't run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info...
Running...
Generic sun4u sparc SUNW,Ultra-5_10
K shell
Here's the .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All... (12 Replies)
Discussion started by: jimmyc
12 Replies
3. Shell Programming and Scripting
I am trying to execute my .profile which has the path to oracle home. But when I execute it with the below command it says nothing and when I try to echo the ORACLE_HOME I am still in my home directory itself which means it didn't get executed.
Please help how to make sure that .profile is... (6 Replies)
Discussion started by: dsravan
6 Replies
4. UNIX for Advanced & Expert Users
Hello All,
I am using a HP-UX machine and I want to update the .profile file so that after login to my userID that will be applicable to my ID also. What I am trying to do is :
In .profile file I am trying to write in /home/userID folder:
export PATH=$PATH:$HOME:.
so that whenever I will... (3 Replies)
Discussion started by: abhishek0071
3 Replies
5. OS X (Apple)
Hi-
I am newish to the mac osx unix interface. I want to set up top so that it always displays the username. I can use this command to do this:
top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee... (1 Reply)
Discussion started by: mikey11415
1 Replies
6. Solaris
for some reason my profile doesnt seem to be loading.
here is some info
$SHELL /sbin/sh
$HOME / (yup, im running at root, its a VM and im using it to learn)
created /.profile
added something simple to test, PS1="test"
logout and back in, open a terminal... prompt is still #
... (2 Replies)
Discussion started by: jrich523
2 Replies
7. Shell Programming and Scripting
Hi All,
I have trying to schedule an autosys job and it is failing. The shutdown script runs fine by itself from the UNIX box but fails when i try to schedule it through autosys.
I have compared user.env with auto.env (variables obtained through an autosys script) and updated my profile... (1 Reply)
Discussion started by: userscript
1 Replies
8. UNIX for Dummies Questions & Answers
Hi!
In my .profile I have a line that says export TNS_ADMIN=$HOME
I received the .profile file from a colleague who uses it to access SQL*Plus from a UNIX server. When I try the same method he uses I get ORA-12154: TNS:could not resolve the connect identifier specifiedwhich makes me think... (8 Replies)
Discussion started by: Mike Welch
8 Replies
9. UNIX for Dummies Questions & Answers
I am using MacOSX, and I decided to change the way my terminal looks. So, I created a ~/.profile file that has only the line
export PS1="\\u\ @ \\W \($0) \\$ \" ( '\u' displays the current user
'\W' displays the Working dir
and the weird numbers are colors)
It works fine when I log in... (3 Replies)
Discussion started by: TX0
3 Replies
10. UNIX for Beginners Questions & Answers
i have a bash_profile
in this profile there are my variable but when i do csh there aren't my variables .set
how can i do ?
regards
Franc (1 Reply)
Discussion started by: Francesco_IT
1 Replies
CHMOD(1) General Commands Manual CHMOD(1)
NAME
chmod - change mode
SYNOPSIS
chmod mode file ...
DESCRIPTION
The mode of each named file is changed according to mode, which may be absolute or symbolic. An absolute mode is an octal number con-
structed from the OR of the following modes:
4000 set user ID on execution
2000 set group ID on execution
1000 sticky bit, see chmod(2)
0400 read by owner
0200 write by owner
0100 execute (search in directory) by owner
0070 read, write, execute (search) by group
0007 read, write, execute (search) by others
A symbolic mode has the form:
[who] op permission [op permission] ...
The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is
omitted, the default is a but the setting of the file creation mask (see umask(2)) is taken into account.
Op can be + to add permission to the file's mode, - to take away permission and = to assign permission absolutely (all other bits will be
reset).
Permission is any combination of the letters r (read), w (write), x (execute), s (set owner or group id) and t (save text - sticky). Let-
ters u, g or o indicate that permission is to be taken from the current mode. Omitting permission is only useful with = to take away all
permissions.
The first example denies write permission to others, the second makes a file executable:
chmod o-w file
chmod +x file
Multiple symbolic modes separated by commas may be given. Operations are performed in the order specified. The letter s is only useful
with u or g.
Only the owner of a file (or the super-user) may change its mode.
SEE ALSO
ls(1), chmod(2), chown (1), stat(2), umask(2)
CHMOD(1)