简体   繁体   English

如何在EC2 AWS上配置AMS管理员权限?

[英]How do I configure AMS admin permissions on EC2 AWS?

I created a fresh Adobe Media Server 5 (aka Flash Media Server) instance on Amazon EC2 AWS , I connected over SSH and changed the default password, everything looks ok. 我在Amazon EC2 AWS上创建了一个新的Adobe Media Server 5 (又名Flash Media Server)实例,我通过SSH连接并更改了默认密码,一切正常。 But the amsadmin account doesn't seem to have enough access to administrate the instance. 但是,amsadmin帐户似乎没有足够的权限来管理实例。 I can read most of the files and folders (access denied for /lib; /lost+found and /root). 我可以读取大多数文件和文件夹(/ lib拒绝访问; / lost + found和/ root拒绝访问)。

I can connect ok 我可以接好

ssh -i key.pem amsadmin@public-dns.amazonaws.com  

I can upload to the media folder 我可以上传到媒体文件夹

scp -i key.pem test.f4v amsadmin@public-dns.amazonaws.com:/mnt/applications/vod/media  

I can't upload content to webroot ; 我无法将内容上传到webroot for example if I wanted to add a crossdomain.xml file to the web root. 例如,如果我想将crossdomain.xml文件添加到Web根目录。

scp -i key.pem crossdomain.xml amsadmin@public-dns.amazonaws.com:/mnt/webroot/  

I can't create a directory ; 我无法创建目录 I want to setup S3 to store content , step 5 says to: 我想设置S3来存储内容 ,步骤5表示:

Create a directory on the instance to mount the S3 bucket, for example, /mnt/s3fs. 在实例上创建一个目录以挂载S3存储桶,例如/ mnt / s3fs。

But under the amsadmin account I get an access denied error, is this expected? 但是在amsadmin帐户下,我收到拒绝访问错误,这是预期的吗?

How can I get access to these restricted areas? 我如何进入这些禁区?

Update: 更新:

I tried executing the commands with sudo and I entered the correct password for amsadmin, got "Sorry, try again". 我尝试使用sudo执行命令,并输入了正确的amsadmin密码,得到“抱歉,请重试”。

Do I need to setup a root account? 我需要设置一个root帐户吗?

弄清楚了,通过SSH连接到实例后,我需要使用sudo sh运行命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM