Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-11-2004, 12:54 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 20
Rep:
|
Run My APP Under a user other than root
I have a Java Application that I built. However I can't run this application except I run it as root. If I change the user to someone else , I can't run my application anymore. I am having this problem with my text editors as well I can only use KWrite when I am logged on as root. other wise I have to use VI . Can some please help me with this problem.
Searching for answers. 
|
|
|
10-11-2004, 01:01 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
i'll assume you wrote your java app as root initially, and then saved it.
do: 'ls -l <filename>' and you should see that it is owned by root. you change this by running 'chown user:group <filename>' as root.
|
|
|
10-11-2004, 01:20 PM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 20
Original Poster
Rep:
|
I have the owner and group set to the name of my new user and still this is not working.
I get an error saying connection to ":0.0" refused by the server.
|
|
|
10-11-2004, 01:57 PM
|
#4
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
The connection to :0.0 refused by server is a result of the XSession being owned by a different user then the one trying to execute a program in X...
|
|
|
10-11-2004, 02:13 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Posts: 20
Original Poster
Rep:
|
I figured that was the problem but each time I start up the system it automatically logs in as root without asking for a password or anything. Does anyone know how to change that? I temporary fixedthe problem by saying "xhost +" . But I will rather just log in as my newly created user.
Thanks
Last edited by working2hard; 10-11-2004 at 02:14 PM.
|
|
|
10-11-2004, 03:17 PM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Can you tell us more about the system that logs as root ?
O/S ? distro ?
|
|
|
10-11-2004, 03:52 PM
|
#7
|
LQ Newbie
Registered: Jul 2004
Posts: 20
Original Poster
Rep:
|
It's running the latest/most current version of Red hat.
|
|
|
10-11-2004, 05:48 PM
|
#8
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
So you should start another thread on the Red Hat forum asking why is your system automatically launching the graphic environment as root, without prompting for a password (both facts being major security hazards), and how to disable that and return to a more reasonable system, with a login menu and root account only used for maintenance tasks.
|
|
|
All times are GMT -5. The time now is 11:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|