Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have built a web application in Windows which uploads and then deletes a file. When I deployed my war file in Debian Linux to Tomcat server, it allows me to upload the file and save it in the file system, but when I am trying to delete that file, it doesn't work because of the file's permissions.

I want to login as a root user in Debian UI. Is there any way to do so?

share|improve this question

migrated from Aug 10 '11 at 11:24

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

up vote 3 down vote accepted

You can launch Nautilus using gksudo and manage the filesystem if you are only interested in files or folders.

As a normal user, just press alt+f2 and enter gksudo nautilus.

It is advised not to login as as root into a Linux box. Use sudo and if you want to act as root, use su.

share|improve this answer

Depending on the UI-manager (e.g. GDM/KDM/XDM) you need to tell them (for KDM it's /etc/kdm/kdmrc) that root-logins are allowed.

An alternative (and recommanded way) is to create a normal user to login and then use sudo to run root-commands.

share|improve this answer

You must log in to answer this question.