|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
setuid does noo respect .profile
OS: Sun Solaris 5.8.
I have a C program that uses setuid to set the effective user id of the process to a specific user. This C program calls some csh scripts. To inherit the user in the csh scripts, I use a '-b' option. This works fine as long as I do not run my .profile in the csh script. But when I do a $HOME/.profile in my csh script, I get the error: csh: Permission denied. Looks like the .profile cannot be executed under the new user. Any ideas on how to resolve this ? Thanks. |
|
#2
|
|||
|
|||
|
Why do you want to do this? .profile is for sh or ksh or bash type shells. csh uses .login typically. The syntax is not the same.
But anyway you are trying to execute .profile as if it were a script. It probably only has read permission set. You need to turn on the execute permission as well. That will get you past this error. But this is probably destined to not do anything useful. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > setuid does noo respect .profile |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|