LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2016, 08:27 AM   #1
Mad_Mike
LQ Newbie
 
Registered: May 2016
Posts: 4

Rep: Reputation: Disabled
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
 
Old 06-13-2016, 10:44 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,873
Blog Entries: 16

Rep: Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463
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.
 
Old 06-13-2016, 11:53 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ext4 - permission to create/modify a file without 'delete' permission BeachHead Linux - General 4 06-08-2014 08:34 PM
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 05:41 AM
[SOLVED] Apache 403 file permission error when accesing a symlink file (CentOS 6.3) mkvakic Linux - Newbie 7 02-13-2013 04:25 AM
Reading ext3 file system on Mac and overriding file permission moravveji Other *NIX 6 09-12-2011 03:25 AM
Any log file for checking file permission change history in RHEL 5.1? bilalcochin Linux - Newbie 3 04-02-2010 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration