file execution confusion

Thread Tools Search this Thread
# 15  
id dsadm
uid=8293(dsadm) gid=2281(dstage) groups=2281(dstage),10009(IA),1006(db2ctrl),2283(dsadm1),6550(iauser),5000(loadl),3344(mft),2001(mqm ),668(sshallow),1001(hrtrans),10002(etldev),1000041(hrdw-dev),1002000(hrt)

id anumit01
uid=1000401(anumit01) gid=1000000(u-users) groups=1000000(u-users),1000151(etldeploy),10002(etldev),1000143(etltestdeploy)

# Permissions of script
-rwxr-xr-- 1 dsadm dstage 8841 2011-09-19 11:49 dsenv
These permissions give:
rwx   for Owner dsadm
r-x    for Group dstage
r--    for Other

Your user "anumit01" is not the Owner "dsadm" or in the Group "dstage".
Therefore the only way you can see the file is because there are read permissions for Other.
There are no execute permissions for Other BUT
if you start a Shell first you can read the script into the Shell and execute
it that way.

The fact that the two users share another secondary Group "etldev" is
largely irrelevant. Your user "anumit01" needs to be in secondary group "dstage" or alternatively the
script needs to owned by Group "etldev" or alternatively the permissions of the script for Other need to be "r-x".
This User Gave Thanks to methyl For This Post:
# 16  
thanks a lot methyl , it was really helpfulSmilie

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Mathematics
Difficulty: Medium
E = MC3
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execution of loop :Splitting a single file into multiple .dat file

hdr=$(cut –c1 $path$file|head -1)#extract header”H” trl=$(cut –c|path$file|tail -1)#extract trailer “T” SplitFile=$(cut –c 50-250 $path 1$newfile |sed’$/ *$//’ head -1’)# to trim white space and extract table name If; then # start loop if it is a header While read I #read file Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies

2. UNIX for Dummies Questions & Answers

File System and Storage Array Confusion

Hi Friends, I have a host(Suse Linux 10.4) which has 2 luns presented from 2 different arrays HP eva and xp. we are planning to migrate hp eva to 3par. When i look for physical volume i see /dev/dm-4, /dev/dm-5, /dev/dm-7and when i look for multipath -ll i see dm-8,dm-9,dm-7. So i can't confirm... (6 Replies)
Discussion started by: munna529
6 Replies

3. UNIX for Dummies Questions & Answers

Execution of sh file inside vi editor...

Friends, Please need your help.... How can i run .sh file inside the vi editor in backend in HP Unix. (19 Replies)
Discussion started by: meetsubhas
19 Replies

4. UNIX for Dummies Questions & Answers

Remote file execution

Hello, I'm new to scripting so, sorry if this is a dumb question. What's the best way to execute a .sh file remotely? I want to log into server "b" from server "a" & run a script. "./". At this point, all I'm looking to do is a simple ls -la > output.txt within the script to capture... (3 Replies)
Discussion started by: crunch10c
3 Replies

5. Shell Programming and Scripting

Expect Issue Serial Forground Execution vs Concurrent Background Execution

I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test. The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies

6. Shell Programming and Scripting

File execution problem

hi all currently we are building lot of new servers(50+).What im looking for is a small piece of code that should help me in running a script that will configure company specific software in all the new boxes.For that currently we have to login to each and every new box manuallly and run that... (2 Replies)
Discussion started by: coolkid
2 Replies

7. Shell Programming and Scripting

file ownership confusion

Hello all, I have a script that runs on both the test and production box. The script is owned by a user (abcd for example) with permission set to 700. When this script is run as a root, the log file generated has owner and group as abcdowner and abcdgroup respectively. Now, when I run the same... (4 Replies)
Discussion started by: solaix14
4 Replies

8. UNIX for Dummies Questions & Answers

Execution bit for a file

Hi Given read and write permission ( for group others etc) on any ordinary text file one can edit and view the file . In this case what role does an execution field play. (4 Replies)
Discussion started by: ss250041
4 Replies

9. UNIX for Dummies Questions & Answers

confusion (file pointer and file descripter)

Hi everybody, i am newbie to unix and confused with file pointers and file descripters. could anyone help me to clear my doubts .. when we call unix system calls to create a file then we are dealing wih file descripters i think file descripters are also normals file as stored inhard disks... (1 Reply)
Discussion started by: johnray31
1 Replies

10. UNIX for Advanced & Expert Users

File system Confusion

Hello All, I administer my department server and now Im assigned the job of installing a new server. The old server has no home directory but the user accounts are managed using a script and they are partitioned in /fs/grad, /fs/ugrad, /fs/fac, /fs/alumni. But when I finger for a... (1 Reply)
Discussion started by: maybemedic
1 Replies

Featured Tech Videos