Hello,

I am simply following setup instruction and one of them mention to type in linux:

$ mv red52/ /usr/lib

davy@ubuntu:~/Desktop/openmeetings$ mv red52/ /usr/lib
mv: cannot move red52/' to/usr/lib/red52': Permission denied
davy@ubuntu:~/Desktop/openmeetings$

--------------------------
Permission denied, what should I do to make it work?

Dani AI

Generated

A "Permission denied" when moving a folder into /usr/lib is expected behavior: that directory is owned by root and regular accounts cannot write there. is right that the operation must be performed with elevated (root) privileges; is also correct that permissions matter, but making things world-writable is unsafe. 's suggestion to disable SELinux is generally not relevant on a default Ubuntu desktop/server (Ubuntu uses AppArmor by default).

Quick checks to show what’s happening:

ls -ld /usr/lib red52
stat red52

Those commands reveal ownership and permission bits for the source folder and the destination. If the destination is root-owned, perform the move with root privileges (for example, run the move while elevated or from a root shell) rather than weakening permissions.

Safer fixes (run as root when needed): set sensible ownership and permissions instead of granting everything to everyone. For example:

sudo chown -R root:root red52
sudo chmod -R 0755 red52

Then place the folder into the system tree, or consider installing it under /usr/local or /opt if it’s not a distribution-managed library.

If the error persists even as root, check for a read-only filesystem or security denials (AppArmor on Ubuntu). Inspect system logs (journalctl or /var/log/syslog) for related messages. Do not leave system directories world-writable and avoid disabling mandatory security components as a first response.

Recommended Answers

All 4 Replies

Member Avatar for Member #1102190

either the folder 'red52' doesnt have the moving and editing rights
OR the folder where you are moving doesnt have editing rights.

Use to following command to first give the folder proper rights and then try moving it.

davy@ubuntu:~/Desktop/openmeetings$ mv red52/ /usr/lib chmod -R 0777 red52

Member Avatar for Member #1102190

either the folder 'red52' doesnt have the moving and editing rights
OR the folder where you are moving to doesnt have editing rights.

Use to following command to first give the folder proper rights and then try moving it.

davy@ubuntu:~/Desktop/openmeetings$ mv red52/ /usr/lib chmod -R 0777 red52

Actually, Sanchit is incorrect. You need to be using sudo to move the file. root is the owner of /usr/lib/, so in order to move the red52 folder to /usr/lib/, you will need to be root.
So try this instead:
sudo mv red52/ /usr/lib/
That should work!

Try a command

setenforce 0

see hope ur issue will be resolved....

commented: Putting SELinux into permissive mode would not be a good idea. Definitely not appropriate for this problem! -2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.