CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Unable to write to test.PJT

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
av62



Joined: 13 Apr 2007
Posts: 4

View user's profile Send private message

Unable to write to test.PJT
PostPosted: Fri Apr 13, 2007 8:45 am     Reply with quote

Hello,

We are using Mplab-7.21 + CCS-PICC-4.018 + CCSC-Plug-in for MPLAB-6.20
We don't give administartor rights on computers

When the user compile, the error:
Unable to write to test.PJT
Contact CCS OUTPUT FILE P

the error don't appears for administrators

What should we change
Ttelmah
Guest







PostPosted: Fri Apr 13, 2007 12:20 pm     Reply with quote

You will probably need to give the application 'sticky' administrator rights, so thet when running, _it_ has administrator priviledges, though the users do not.

Best Wishes
av62



Joined: 13 Apr 2007
Posts: 4

View user's profile Send private message

PostPosted: Mon Apr 16, 2007 3:17 am     Reply with quote

Thank Ttelmah,

I don't know hown I can give the application 'sticky' administrator rights.

I found "run as..." by specifying administrator's password itch time:
-the users don't have administrator's password
-the users save their files in their network drive account. (local administrator don't access)

Can you give me more informations about you good idea.
Ttelmah
Guest







PostPosted: Mon Apr 16, 2007 8:37 am     Reply with quote

Depends on your OS.
On Unix, you set the 'sticky' bit.
In Windows, you create a shortcut to the program as an administator, select 'advanced' on this, and set the option to "run with different credentials". Once set, people using the _shortcut_, will run the final application with the specified credentials, rather than their own.

Best Wishes
av62



Joined: 13 Apr 2007
Posts: 4

View user's profile Send private message

PostPosted: Mon Apr 16, 2007 9:19 am     Reply with quote

Thank again Ttelmah,

I didn't know this method with Windows XP, but it will not be the solution:


-I don't want to give administrator's password to the students (it is always asked when you start Mplab)
-the users will have difficulties to save their files directly in their network drive account

Other solutions ?
Ttelmah
Guest







PostPosted: Mon Apr 16, 2007 9:38 am     Reply with quote

You don't give the administrator password to anybody.
One person (you), sets up the shortcut, and the credentials, with the required password. Once done, anyone _running_ the shortcut, automatically runs the _program_ (and only that program), as if they were a administrator, without having to know the password etc.. The 'credentials', are encrypted, and stored along with the shortcut. You set the program as 'read only', so that no changes can be made to it.
This is how things like the backup utility, are able to run and access stuff, not directly accessible to a normal user.
I suggest you do some reading on how this type of thing works, otherwise you do not have enough knowledge to be 'securing' a system well. This is an essential tool, since there are quite a lot of applications in Windows, which assume that they do have significant 'rights, beyond those of a well secured user.

Best Wishes
av62



Joined: 13 Apr 2007
Posts: 4

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 3:38 am     Reply with quote

Thanks’ again Ttelmah,

I found the good syntaxe (at prompt command: runas /?)
It works

Last problem: Students can't write on C:\
Their personal folder is R:\ (network drive) which is unreachable by local administrator
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group