LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File permission (https://www.linuxquestions.org/questions/linux-software-2/file-permission-4175582146/)

Mad_Mike 06-13-2016 08:27 AM

File permission
 
Hi
I have been trying to get a honeypot running on a Pi 3, I have installed cowrie, mysql, phpmyadmin and everything that needs installing. Everything is going great, but there is one slight problem I can't seem to figure out.

As a bit of background I created the install using a Debian lite image, then added only the required installs to get what I wanted to work. Maybe I have not installed a Python required package, although looking at the fact it is something to do with permissions makes me wonder if that is indeed true.

This is the problem
I wanted to run createfs > fs.pickle but I get an error saying that I do not have permission to that file. I was at the time logged on using the main account and I was using "sudo" when I ran the command.
I checked the permissions of the file it states that it belongs to another user, called cowrie, and that user has read only access. I created the cowrie user with the –disabled-password switch so if I use that user I change using # sudo su cowrie.

My question is, can I just change permissions on the file “fs.pickle” to allow me to run it? Also is running that file best done with the Pi account. If I change the permissions will this then mess with the required result.

For information I have been following this tutorial

Thanks for your help

hazel 06-13-2016 10:44 AM

You can always change the ownership and permissions of a file by getting root access with su or sudo. The question is whether that is a good idea in this particular case. There is probably some reason why the installation procedure assigned this file to the cowrie user and made it read-only.

Emerson 06-13-2016 11:53 AM

Some applications with strict security requirements check file permissions and may refuse to run if weak settings are found. My advice is - try it. You can always change it back if needed.


All times are GMT -5. The time now is 06:40 PM.