Запускаем консоль CLI Asterisk от другого пользователя

В одной из задач мне понадобилось решить именно такую проблему. Итак, вопрос стоит так: каким образом дать доступ пользователю системы, который не имеет отношения к Asterisk. Мой Asterisk настроен таким образом, что запускается от пользователя asterisk, принадлежащего одноименной группе. (простите за тавтологию)

На самом деле большой проблемы в этом нету. Поэтому сразу к делу. Добавляем нового(или уже существующего) пользователя в группу asterisk:

# Если пользователь новый
useradd -G asterisk tony
# Если пользователь существует
usermod -a -G asterisk tony

После этого уже можно подключиться к CLI. Если не получилось, то выполняем еще один шаг: добавим в файл /etc/asterisk/asterisk.conf следующее содержимое и перезапустим asterisk.

[files]
astctlgroup => asterisk
astctlpermissions = 0775

Собственно все, теперь пользователь tony сможет подключаться к CLI Asterisk.

69 комментариев к “Запускаем консоль CLI Asterisk от другого пользователя

  1. I’m not sure exactly why but this web site is loading incredibly slow for
    me. Is anyone else having this issue or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  2. Terrific work! That is the kind of info that are meant to be shared around the internet.
    Disgrace on the search engines for no longer
    positioning this publish higher! Come on over and consult
    with my website . Thanks =)

  3. You could definitely see your expertise in the work you write.
    The arena hopes for more passionate writers like you who aren’t afraid
    to mention how they believe. All the time follow your heart.

  4. Thanks for your marvelous posting! I truly enjoyed reading
    it, you happen to be a great author. I will ensure that I bookmark your blog and will often come back later in life.
    I want to encourage you to continue your great posts, have a nice evening!

  5. Wonderful blog! I found it while searching on Yahoo News.
    Do you have any tips on how to get listed in Yahoo
    News? I’ve been trying for a while but I never seem to get there!
    Appreciate it

  6. May I simply just say what a comfort to discover somebody
    who actually knows what they’re discussing on the net.
    You actually realize how to bring a problem to light and make it important.
    A lot more people must check this out and understand this side of
    your story. It’s surprising you’re not more popular since you
    most certainly have the gift.

  7. May I simply just say what a comfort to uncover somebody who truly knows what they’re
    talking about on the internet. You definitely realize how to
    bring a problem to light and make it important.
    A lot more people must look at this and understand this side of the story.
    I was surprised that you aren’t more popular because you most certainly have the gift.

  8. I absolutely love your blog and find most of your post’s to be what precisely I’m looking for.
    Would you offer guest writers to write content available for you?
    I wouldn’t mind producing a post or elaborating on a number of the
    subjects you write with regards to here. Again, awesome blog!

  9. Hey there! This is kind of off topic but I need some
    advice from an established blog. Is it tough to set up your own blog?
    I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about creating my own but I’m not sure where to begin. Do you have any ideas or suggestions?
    Thank you

  10. What i don’t realize is in truth how you are not actually a lot more well-liked
    than you may be now. You’re so intelligent. You already know therefore considerably
    relating to this subject, produced me individually imagine
    it from so many various angles. Its like men and women don’t seem to be interested
    except it is something to accomplish with Lady gaga! Your own stuffs great.
    At all times maintain it up!

  11. My partner and i and my local freinds were going by way of the nice, useful information by the blogging site then typically the sudden came up using an awful suspicion My partner and i never expressed respect for the website owner for individuals secrets.

  12. Hi! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.
    Anyways, I’m definitely delighted I found it and I’ll be bookmarking
    and checking back often!

  13. First of all I would like to say excellent blog! I had a quick question in which I’d like to ask if you
    do not mind. I was interested to find out how you
    center yourself and clear your thoughts prior to writing.
    I have had a tough time clearing my mind in getting my ideas out there.
    I do enjoy writing however it just seems like
    the first 10 to 15 minutes are generally lost simply just trying to figure out how to begin. Any ideas
    or hints? Kudos!

  14. Thank you for your site post. Thomas and I are saving for a new guide on this matter and your short article has made us all to save our own money. Your opinions really responded all our issues. In fact, greater than what we had recognized before we stumbled on your wonderful blog. We no longer nurture doubts including a troubled mind because you have actually attended to our own needs right here. Thanks

  15. Hey there! This post couldn’t be written any better!
    Reading this post reminds me of my previous room mate!

    He always kept chatting about this. I will forward this
    write-up to him. Fairly certain he will have a good read.

    Thanks for sharing!

  16. I am just planning to start out my personal blog page soon, but I am just a bit lost on anything. Would you recommend starting up with a free program like WordPress or move for a paid alternative? There are so several choices on the market that Now i’m completely confused. Any ideas? Thanks a lot.

  17. In addition to indeed, I’m just constantly astounded concerning the impressive things served by an individual. Some four facts in this page are irrefutably the most effective We’ve had.

  18. Pre-existing without the answers to be able to the difficulties you’ve fixed out through this guidebook is a critical circumstance, as well as typically the kind which could include badly afflicted my complete career if I acquired not uncovered your internet site.

  19. I do agree with all of the concepts you’ve introduced on your post.
    They are really convincing and can definitely work.
    Still, the posts are too quick for starters. May just you please prolong them a little from subsequent time?
    Thanks for the post.

  20. Howdy! Someone in my Facebook group shared this website with us so I
    came to look it over. I’m definitely loving the information. I’m book-marking and
    will be tweeting this to my followers! Great blog and brilliant design and style.

  21. Remarkable things here. I’m very glad to peer your article.
    Thank you a lot and I’m having a look ahead to contact you.

    Will you please drop me a e-mail?

  22. I think that what you posted made a ton of sense. However,
    what about this? what if you typed a catchier post title?
    I mean, I don’t wish to tell you how to run your website, however suppose you added
    something that makes people want more? I mean Запускаем консоль CLI Asterisk от другого пользователя
    – VOIP-LAB is a little plain. You ought to look at Yahoo’s home page and
    watch how they write news titles to get people to click.
    You might add a video or a related pic or two to get readers interested about everything’ve
    written. In my opinion, it might make your posts a
    little livelier.

  23. Wow that was unusual. I just wrote an extremely long comment but after I clicked
    submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyhow, just wanted
    to say superb blog!

  24. Hi there My partner and i is so thrilled I came across your website, I definitely found you by oversight, while I was searching Yahoo for something different, Anyhow I am below now and would merely like to say many thanks for a tremendous write-up and an all rounded exciting blog page (I likewise love the theme/design), I actually don’t have time to be able to experience it all from the minute but I actually have saved it and in addition added in your RSS OR ATOM feeds, then when I have got time I will end up being to read more, Remember to do maintain the wonderful job.

  25. Hey! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work
    due to no data backup. Do you have any solutions to protect against hackers?

  26. Normally I don’t learn post on blogs, however I wish to say that this write-up very pressured me to take a look at and do
    it! Your writing style has been surprised me.
    Thanks, very great article.

  27. hey there and thank you for your info – I have definitely picked
    up something new from right here. I did however expertise
    several technical points using this site, as I experienced to reload the web site lots of times previous
    to I could get it to load properly. I had been wondering if your web hosting is OK?
    Not that I am complaining, but slow loading instances
    times will very frequently affect your placement in google and can damage your
    high-quality score if advertising and marketing
    with Adwords. Well I am adding this RSS to my email and can look out for a lot more of your respective interesting content.
    Ensure that you update this again soon.

  28. Hey there! I’ve been following your blog for
    a while now and finally got the courage to go ahead and give you a shout out from
    Houston Texas! Just wanted to say keep up the excellent
    work!

  29. Have you ever thought about creating an e-book or guest authoring on other blogs?
    I have a blog based on the same information you discuss and would love to have you share some stories/information. I know my visitors would value
    your work. If you are even remotely interested, feel free to shoot me
    an e mail.

  30. Woah! I’m really digging the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s very hard to get that
    “perfect balance” between usability and visual appearance.
    I must say you have done a superb job with this. Also, the blog loads extremely
    fast for me on Safari. Outstanding Blog!

  31. Hola! I’ve been following your blog for some time now and
    finally got the courage to go ahead and give you a shout out from Austin Texas!

    Just wanted to say keep up the excellent job!

  32. Fantastic beat ! I would like to apprentice while you amend your website, how could
    i subscribe for a blog web site? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your
    broadcast offered bright clear idea

  33. Уведомление: My Homepage
  34. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service?
    Thanks a lot!

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *