Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In resume i want to assume a id on a Unix machine but i wanna know if its possible to limite to only read rights and no write on the system , but if you enter the acc i sudo to normally without the origin being a sudo command then you can write if you came from other user you cant !

share|improve this question

migrated from stackoverflow.com Dec 5 '12 at 12:09

This question came from our site for professional and enthusiast programmers.

2  
Might be a better fit for superuser, but could do with a clearer explanation of your problem... Didn't downvote though... –  Mr47 Dec 5 '12 at 9:54
    
the situations is a bit tricky and its only a yes or not answer that i need , i have a production machine that needs a quick review from time to time but i would not like to have a write permission and i dont want to change the permissions on my original user, so i want to know it its possible to go to the admin acc from my acc on the command line but only with read rights ... and without the write permissions that the admin have . –  PythonNewbie Dec 5 '12 at 9:58
1  
You want to go to the admin account, but without it being an admin account ? (without the write permissions)... That's like saying you want to be Santa, but without the beard. –  Damien Overeem Dec 5 '12 at 10:25
add comment

1 Answer 1

up vote 0 down vote accepted

No, you can not switch to the admin/root user without also obtaining the write permissions that the admin/root user has.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.