I am new to  linux, and am assign to project base on linux. I have Linux VM installed. But it never get locked. It always remain on desktop or any open window.

Is there any settings we I need to check and any command.

LVL 12
Satish AutiSenior System AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andy FeysCommented:
which version of linux are you using (Ubuntu, Redhat, ....) ?
Satish AutiSenior System AdministratorAuthor Commented:
Andy FeysCommented:
I'm no Redhat expert (I use Debian and Ubuntu distros), but I found a possible reason here:

"Why doesn't my screen lock when I'm logged in as root?
gnome-screensaver will blank the screen but will not lock. This is for security reasons. Seriously, it is very unwise to login as root in the first place. Try logging in as an unprivileged user and using sudo or su instead. "

I don't know if you're logged in as root when this happens, but this could be the reason. You should always use another user to login and sudo to root only when needed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.