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
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
Re: Help with "su - news" i INN - InterNetNews
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
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
Re: Help with "su - news" i INN - InterNetNews
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.
If you have sudo setup then the following should also work: and in this case you would enter your sudo password
Code: Select all
su -c"su - news -c /usr/local/news/bin/rc.news"
Code: Select all
sudo -U news /usr/local/news/bin/rc.news