LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2005, 05:40 AM   #1
hoopy
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
adding user


hi! i am new to linux and would gretafully appreciate some plz..

I am trying to configure and make a prog...
when i config and make in root it all compiles fine but this is a prog u not supposed to make in root and wont run in root but i just checked it would config and make ok....

i have added a user by useradd -m -G users,wheel -s /bin/bash blahblah

how ever when trying to config and make the same prog when logged in as this new user.... the config and make gives me loads of errors
But it makes ok in root....

Do i have to give my added user permission or something so as they can compile and make this successfully and how can i do this?

many thanks guys much appreciated and very handy site
 
Old 09-13-2005, 06:11 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It seems you are not sure how to ask this question... lets see what I can figure out:

You are trying to install something from source
You have already done so as root user - with apparent success.
However, you want to reinstall as a normal user.
But when you try, you get errors.

Have I got it so far?

OK - to help you I need to know some stuff:

1. what is the name of the package you are trying to reinstall?
2. in what way does the existing install not work for you? (What have you done to try it out - what happened - what did you expect to happen? Quote command-line input and output as part of answering this part.)
3. have you tried to uninstall the root version before you tried to reinstall as a user?

In general:
Usually the makefile has to be run as root if the package requires you to make system level changes. Usually it is only the "./configure" step which is not run as root. The main problems with compiling as root are (a) damaging your system and (b) making the resulting executable owned by the root user (and thus not readily available by others).

You have avoided (a) - your system still works. (b) can be fixed by changing the permissions as root user to include non-root users.

There are, of course, security implications. Developers add a warning about installing as root as a way of protecting themselves.
 
Old 09-13-2005, 02:05 PM   #3
hoopy
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
thx for reply bud...

i am trying to install iroffer1.3.b10 ...

i can configure and build in root with no errors
./configure && make works fine and seems to build it ok

but u cant run iroffer on irc in root... so i added user by
useradd -m -G users,wheel -s /bin/bash john

then i logged in as john... then done the commands to start iroffer -> ./iroffer.exe sample.config

but it gives me errors saying cannot access my.bot.log mybot.pid permission denied......

i tried making and config in john user but wont build...
 
Old 09-13-2005, 09:38 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK, as root, cd into the same place you ran the ./configure && make commands, do make install ... this should help as it installes iroffer system-wide (in /usr/bin) and you can then run iroffer as any user without the old "./" part.

copy the "sample.conf" to another name.
$ cp sample.conf mybot.conf
... prevents accidents;

run
$ iroffer -c
... to generate an encrypted password;

To use iroffer from command line you do:
$ iroffer mybot.conf
... for running in the foreground and,
$ iroffer -b mybot.conf
... for running in the background.

Note: The executable usually comes without a .exe suffix... did you change the name?

Last edited by Simon Bridge; 09-13-2005 at 09:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a new user Cinematography MEPIS 5 07-25-2005 09:19 PM
Adding User? cry0x Linux - Software 5 02-27-2005 04:15 PM
Adding a new user Yohhan Linux - Software 3 01-23-2003 07:17 PM
Adding user desbyleo Linux - Newbie 3 02-18-2002 07:15 PM
user adding sathu Linux - Newbie 1 02-12-2002 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration