ssh-copy-id may come in handy.
By default, the CSE will create a single username for all users to access. You can request they create named users as well, however you will need to be vigilant in adding / removing users as these users are not managed in a centralized repository.
By default you will have more (if still limited) access to the Lower environments as compared to the upper environments. Even in the upper environments, you can request a “jailed user” with read-only access to the logs.
In the lower environments, you will be able to do a number of “write” activities by invoking sudo. For a full list of the commands you can execute, run:
sudo -l
Your allowed sudo commands will generally use the full file path, it’s important to note in that case, you cannot just execute the command from the relative directory, e.g. this won’t work:
cd /etc/httpd/conf.d
sudo vi dispatcher_vhost.conf
but this will:
sudo vi /etc/httpd/conf.d/dispatcher_vhost.conf
For those not experienced with AEM, Dispatcher servers run Apache httpd with a special module called the Dispatcher and serve as a proxy, cache and quasi-security layer for the AEM Authors and Publishers.
Important Directories:
/mnt/var/log/httpd/
/mnt/var/www/html/
/etc/httpd/
/etc/httpd/conf.dispatcher.d/
Useful Commands:
sudo service httpd restart
sudo journalctl --system -u httpd
cat /etc/sysconfig/httpd
sudo ls /mnt/var/log/httpd/
sudo tail -f /mnt/var/log/httpd/[log-file-name]
/mnt/var/log/httpd/*
, you need to explicitly mention the log files to tail, e.g:sudo tail -f /mnt/var/log/httpd/access_log /mnt/var/log/httpd/error_log
sudo vi /etc/httpd/conf.dispatcher.d/[configuration-file]
This applies for both AEM Author and Publish instances as the setup of each from the AMS perspective is nearly identical besides the runmode.
Directories:
/mnt/crx/[author|publish]/crx-quickstart
Note - You won’t be able to access the parent of the crx-quickstart folder and have to change directly into the crx-quickstart path/mnt/crx/[author|publish]/crx-quickstart/logs
Useful Commands:
sudo /etc/init.d/cq5 restart
ls /mnt/crx/[author|publish]/crx-quickstart/logs
tail -f /mnt/crx/[author|publish]/crx-quickstart/logs/[log-file]
Hopefully, this helps you feel your away around your AMS installation and remember, we’re always here to help. Having trouble getting to something or diagnosing an issue? Leave a comment!