andLinux Homepage andlinux.org
The official forum of the andLinux community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Please help to keep the forum clean! Seen a post that is spam or contains objectionable material?
Please report the link to the post to: david @ andlinux . org (remove spaces)

root vs regular account

 
Post new topic   Reply to topic    andlinux.org Forum Index -> Linux Newbie Help
View previous topic :: View next topic  
Author Message
cranbury



Joined: 29 Nov 2007
Posts: 4

PostPosted: Thu Nov 29, 2007 5:59 pm    Post subject: root vs regular account Reply with quote

Dear all,

need your help, How can I login in as a regular user not root? whenever I open a
new terminal, I became root automatically. I can use "sudo passwd root" to set paasword for root and
adduser to setup another account, but I never need to login in.

Thanks!

Cranbury
Back to top
View user's profile Send private message
cranbury



Joined: 29 Nov 2007
Posts: 4

PostPosted: Thu Dec 06, 2007 7:40 pm    Post subject: Come on, Guys! Reply with quote

Is my question too dumb to answer? I apologize if that is the case. I had an application which is
NOT recommended to be installed under the "root" account since I am going to run http
server. I want to know how to set up and login in as regular user.
Back to top
View user's profile Send private message
kalle



Joined: 30 Aug 2007
Posts: 10

PostPosted: Sun Dec 09, 2007 11:49 am    Post subject: Reply with quote

I added a user,nisse, and then changed the last line in: /usr/bin/X11/startwindowsterminalsession

sux - root ${termcommand} $parameters

to

sux - nisse ${termcommand} $parameters
Back to top
View user's profile Send private message
russianbandit



Joined: 27 Feb 2008
Posts: 3

PostPosted: Thu Feb 28, 2008 4:06 pm    Post subject: Reply with quote

kalle wrote:

sux - nisse ${termcommand} $parameters


This works, however, after i set it to a user other than root, I am no longer able to bring up the terminal. I get that "Cannot connect to <some ip>" pop-up error. Also the boot logs say that there was a socket problem.
As soon as I changed it back to: sux - root ... then everything works normal again.

Is there another way to make your terminal come up as a non-root user?
Back to top
View user's profile Send private message Visit poster's website
Joachim



Joined: 22 Jun 2007
Posts: 98
Location: Paderborn, Germany

PostPosted: Thu Feb 28, 2008 5:47 pm    Post subject: Reply with quote

russianbandit wrote:
kalle wrote:

sux - nisse ${termcommand} $parameters


This works, however, after i set it to a user other than root, I am no longer able to bring up the terminal. I get that "Cannot connect to <some ip>" pop-up error. Also the boot logs say that there was a socket problem.

That's why only root can open ports below 1024, and the launcher uses 81. You may change the launcher port on the Linux side be editing /usr/local/sbin/launcher.pl and on the Windows side as described here: http://www.andlinux.org/faq.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website
russianbandit



Joined: 27 Feb 2008
Posts: 3

PostPosted: Thu Apr 03, 2008 4:28 pm    Post subject: Reply with quote

So what I tried to do was:

In .bashrc file add a line
Code:
su - [i]user[/i]


In ideal that should work, no problem.
However, the "Cannot connect to <some ip>" pop-up error returned and I could not get rid of it.
Why is that happening?

Notice that as soon as i deleted the added line from .bashrc, the terminal launcher began working again.

What is the solution here, I would love the terminal to start as a non-root user.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    andlinux.org Forum Index -> Linux Newbie Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group