Iam using Kafka version kafka_2.8.0-0.8.1.1.
When i try to start the Kafka server using the following command:
./kafka-server-start.sh /home/msruser1/hadoopcluster/kafka_2.8.0-0.8.1.1/config/server.properties
permission denied appears on console:
-bash: ./kafka-server-start.sh: Permission denied
Any suggestions on how to solve this.
Run: sudo !! to execute previous command with elevated permissions.
You can also give yourself permission with sudo chown -R msruser1 /home/msruser1/hadoopcluster
Related
I am trying to install the servecm plugin (https://github.com/jdolitsky/helm-servecm) for helm (https://helm.sh/), and following the installation steps I execute:
helm plugin install https://github.com/jdolitsky/helm-servecm
and then:
helm servecm
When I ran the second command, I got a permission denied error so I decided to run it with sudo, but when I run:
sudo helm servecm
I get the following error:
$ sudo helm servecm
Error: unknown command "servecm" for "helm"
Run 'helm --help' for usage.
I've read in some other posts that I need to add the command to the sudo path, but in every case I've read is always for the first command, which is recognized, but I don't know how to do it for the servecm option.
If it is useful, the servecm.sh file is located at: ~/.local/share/helm/plugins/helm-servecm
Thanks in advance
the permission denied error that you are talking about may mean that you user account cannot access ~/.local/share/helm/plugins/helm-servecm so try changing its permissions
chmod +rw ~/.local/share/helm/plugins/helm-servecm
I hope this helps you
I can find plenty of references to this error, but they all point to permission issues, however my permissions appear to be fine as I can modify this folder using nano and SSH.
I'm trying to use RemoteSSH with a custom user account, user
The server is running Debian 11 and nginx
I have key based auth and I connect to the server. When I try to create or remove a file in the web folder (/var/www/html) I get this error message Error: EACCES: permission denied, <what I was trying to do, i.e. rename a file, or delete a file>
I can do all of these things using a standard SSH connection (openSSH built in to Windows 10)
The owner of /var/www/ is set to www-data (recursively)
user is a member of the group www-data
Do I need to do anything in VSCode to update permissions? Am I missing something else?
Here are the exact commands I used:
sudo adduser user www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R 0775 /var/www
OK I did a bit more Googling right after posting this, and I was able to fix this by deleting the .vscode-server folder in the home directory.
https://github.com/microsoft/vscode-remote-release/issues/3399#issuecomment-922935448
I'm not sure if there is an easier way to fix this without doing so, or having to do that every time permissions are changed.
I'm running Laravel app on server (Ubuntu 16.04). I have an error
The stream or file "/var/www/mydomain.com/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
I've already google my question. I found this answer, but it wasn't helpful. I can't set 777 permission for storage (it's dangerous), as was suggested by many other answers I found.
Any other suggestions?
UPDATE:
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
was helpful
This commands were helpful:
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
I'm getting the following message when I try connecting to MongoLab with the command:
mongo ds035438.mongolab.com:35438/comeventsbw -u (myusername) -p (mypassword)
MongoDB shell version: 3.0.6
connecting to: ds035438.mongolab.com:35438/comeventsbw
2015-12-10T10:30:18.537-0700 I STORAGE In File::open(), ::open for '/Users/benwong/.mongorc.js' failed with errno:13 Permission denied
The ".mongorc.js" file located in your home folder could not be executed
You can try to delete the root directory .mongorc.js file. To do this in mac OS you can use cd ~/&&ls -al, if you see .mongorc.js that is owned by root, so we can use sudo rm .mongorc.js to delete it.
I got the same error in Ubuntu-18. Initially I logged in as normal user. I typed mongo on the terminal. So I got same above error. So I switched to the root user using sudo -s This time when I typed mongo command on the terminal I'm able to connect mongo server. So I thought this service is not available for the normal user.
This is what I enter:
user#user-computer:/usr/lib/postgresql/9.4/bin$ ./postgres -D /etc/postgresql/9.4/main/
This is what I get:
[4173-1] FATAL: could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
Can anyone help me? should I change permissions on ss-cert...key file?
The error happens because you're trying to launch PostgreSQL as your own unpriviledged user, and it's not meant to run like that.
Ubuntu provides PostgreSQL packaged in a way that it should be launched with:
$ sudo /etc/init.d/postgresql start
# or
$ sudo service postgresql start
or for finer-grained control with pg_ctlcluster, see
http://manpages.ubuntu.com/manpages/trusty/man8/pg_ctlcluster.8.html
This can happen when the postgres user doesnt belong to ssl-cert usergroup
Try adding postgres user to the group ssl-cert
make sure that postgres is the owner of /var/lib/postgresql/version_no/main
eg: sudo chown postgres -R /var/lib/postgresql/9.6/main/
Run the below code to fix the usergroup issue and fixing the permissions
# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with
sudo gpasswd -a postgres ssl-cert
# Fixed ownership and mode
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key
# now postgresql starts! (and install command doesn't fail anymore)
sudo service postgres restart
#also try running pg_ctlcluster <version> <cluster> <action>
sudo pg_ctlcluster 9.6 main start
courtsey to GabLeRoux