![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Awk - to test multiple files "read" permission ? | lokiman | Shell Programming and Scripting | 1 | 02-09-2008 12:10 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| permission denied for ". " (dot space) | shriashishpatil | UNIX for Advanced & Expert Users | 3 | 04-12-2007 03:28 PM |
| simple Unix Execute permission for "others" | jsudha | HP-UX | 1 | 07-26-2004 04:45 PM |
| How to "Print Screen" from a dumb terminal on AIX? | stembe | UNIX for Advanced & Expert Users | 3 | 11-15-2002 12:01 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
screen throws "permission denied"
Hi all,
i've got problem in running a script in background... i have written a script, and i want to run it everytime i log in, but when i log off i want the script to stay (i watch not to run two scripts at one time in the script). so as a normal user i want to do: $ screen my_script & this works only when i'm on a root, but when i do it as a normal user i get: shmat: Permission denied i've noticed that i just can't run screen as a normal user... so... can anyone tell me what the hell is going on? btw. i'm on SunOS 5.9 |
|
||||
|
yup... tried that... it dosn't work... don't know why though (maybe solaris is a great system
)... maybe i'm using it not right... anyway the scirpt is in PATH, and it's name is... eg. my_scirpt, with that how am i suppose to call nohup? |
|
||||
|
Ran into this myself some time ago. The problem is due to permissions on the "device" screen is using. This is why you are getting the "permission denied" error. Can't quite remember which device right now, but I wrote a script to change perms on the device for users wishing to do very close to what you want to do. If I recall, I brought up screen while using another session to poll (cd <device_directory>; while true; do ls -ltr; done), the device list. This way, I could see which device was assigned a user, and know which device to change perms on. Hope this helps... if I remember, I can look for the script tomorrow and post it.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|