Results 1 to 3 of 3

Thread: Insufficient permissions with ec2-user SSH user, how to log in as wowza user?

  1. #1
    Join Date
    May 2013

    Default Insufficient permissions with ec2-user SSH user, how to log in as wowza user?


    I used the ami-c2fd6dab AMI (us-east-1) to build an instance with wowza. I can't figure out how to SSH in to the ec2 instance with the wowza user, is that even possible? I SSH in using ec2-user and the .pem file that AWS generated for me. But I can't use that identity, or figure out how to use a password.

    When I log in as ec2-user I try to start and stop the server, but get permission denied errors:

    [ec2-user@ip-10-191-39-232 ~]$ service WowzaMediaServer stop
    WowzaMediaServer: stopping
    waiting for processes to exit^[[A
    waiting for processes to exit^[[Brm: cannot remove `/var/run/': Permission denied
                                                               [  OK  ]
    [ec2-user@ip-10-191-39-232 ~]$ service WowzaMediaServer start
    /etc/init.d/WowzaMediaServer: line 63: kill: (1330) - No such process
    WowzaMediaServer is already running (1330): stopping
    rm: cannot remove `/var/run/': Permission denied
    WowzaMediaServer: starting                                 [  OK  ]
    touch: cannot touch `/var/run/WowzaMediaServer': Permission denied
    This doesn't look like it's really restarting the server.


  2. #2
    Join Date
    May 2013


    I found that I had to enable password logins for ec2 as the root user.

    Login as ec2-user
    Edit the /etc/ssh/sshd_config file (make sure to sudo)
    set PasswordAuthentication yes
    Run sudo /etc/init.d/sshd reload

  3. #3
    Join Date
    Dec 2007


    Also note that to run as root once you have logged in with "ec2-user", do this:
    sudo su -

Similar Threads

  1. Replies: 2
    Last Post: 08-19-2012, 06:34 AM
  2. How to remove the disconnect user from shared object in user?
    By divyat in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 07-19-2012, 04:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts