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.

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 stackoverflow.com Aug 10 '11 at 11:24

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

add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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