Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was wondering if there was a way to make a script that logouts of root or takes the automatic root login and logs in a user. This is for security reason so that the user cannot change important files. I am using Ubuntu 12.04 or a EMB-3500 freescale board(i.mx6 chip)(ARM).

Note* I do not have a bootloader or inittab file. My opening console that logs in as root is ttymxc0 which is specific to the board.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Could try: su -l user;exit;

That would switch to the user, then drop the root session if the user logs out.

share|improve this answer

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.