Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Help with "su - news" i INN - InterNetNews

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jocke
Posts: 8
Joined: 2009-12-01 09:25

Help with "su - news" i INN - InterNetNews

#1 Post by jocke »

Hello, i am a newbie and I have some problem to understand how to use su - news .

When I installed
apt-get install inn
(I tried to install with: apt-get install inn2 but it would not install all)

But the main question is:
I will be user news, and it will not work if I am root.
So I start the Terminal and type su - news, that work.

But when I will do somthing it asks for a password,
and this I don`t understand, because I never set a password?

Please explain it for me.

Jocke

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#2 Post by llivv »

'
Last edited by llivv on 2019-02-18 02:01, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

jocke
Posts: 8
Joined: 2009-12-01 09:25

Re: Help with "su - news" i INN - InterNetNews

#3 Post by jocke »

Hello again, and thanks llivv for your tips.

I did a reinstallation of inn2, and it seems to be installd.


About su - news

If I log in as sudo in the Terminal and then print su - news Igot.
news@debian:~$
and thats OK.

But when I print:
su - news -c /usr/local/news/bin/rc.news
Password:(My sudo password)
su: Authentication failure


I have 2 more questions


When I print nslookup I get "** server can't find debian: NXDOMAIN"

If I understand this right so is there somthing i missed with hostname and domain name

but I dont know what to do, I spent ours of googling for answers since my last post but no luck.

...............................................................................................................................
I have a clean install of debian when I trying to do this installation of inn2.
...............................................................................................................................

Thanks for all help and a happy new year from Sweden

Jocke

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#4 Post by llivv »

'
Last edited by llivv on 2019-02-18 02:01, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Help with "su - news" i INN - InterNetNews

#5 Post by bugsbunny »

su does not use sudo passwords. It needs the password for the account that you're trying to become (default root) (unless you run it when you're already root). The following would work, but enter your root password, not your sudo password.

Code: Select all

su -c"su - news -c /usr/local/news/bin/rc.news"
If you have sudo setup then the following should also work:

Code: Select all

sudo -U news  /usr/local/news/bin/rc.news
and in this case you would enter your sudo password

Post Reply