How to change the user permission in openerp. i have access denied. while i save the python file
I cannot save the python file .
i got an error messages like this :-
Error opening file '/opt/openerp/openerp-7.0-20140803-231125/openerp/addons/account/account.py': Permission denied
The file on disk may now be truncated.!!
You should set the permission on specific file just go to the path where your file is located from the terminal
You should do some think like this
/opt/openerp/openerp-7.0-20140803-231125/openerp/addons/account$ sudo chmod 755 account.py
then you should easily Edit and Save your account.py python File.
Related
so my first attempt into web development, one best forgotten methinks in that -when creating my first html file- I was meant to load the saved file using sublime 3 and git gui. I'm unsure how but ended up loading thousands of files - seemingly entire C: Drive -and directories in one go instead of the html file only. Being a complete novice ( clearly so!) I suspect I may have erred in that it was saved on the desktop to start with and not a folder. Please advice how to unstage all these files and directories and get them off git gui and of course crucially my command prompt so I can start the entire excercise afresh . SEE BELOW how it looks. These all sits in the 'Unstaged changes' in git gui I tried git clean and now trying git--rm (attempted removing one file Jedi/ here). If these are the simplest means to remove it please provide how to script the command correctly . alternatively another simple way to remove them, all in one go
Microsoft Windows [Version 10.0.22000.1098]
(c) Microsoft Corporation. All rights reserved.
C:\Users\user>git status
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Start Menu/': Permission denied
warning: could not open directory 'Templates/': Permission denied
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .ipynb_checkpoints/Untitled3-checkpoint.ipynb
new file: .ipython/profile_default/history.sqlite
new file: .vscode/extensions/ritwickdey.liveserver-5.7.9/package.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
.gitconfig
AppData/
Contacts/
Desktop/
Documents/
Downloads/
Favorites/
Jedi/
Links/
Music/
NTUSER.DAT
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.0.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.1.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.2.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.blf
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TM.blf
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TMContainer00000000000000000002.regtrans-ms
OneDrive/
Pictures/
PycharmProjects/
Saved Games/
Searches/
Videos/
anaconda3/
coursera-test/
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
C:\Users\user>git rm --cached<file>Jedi/
The system cannot find the file specified.
C:\Users\user>git rm--cached<file>Music/...
The system cannot find the file specified.
C:\Users\user>git rm--cached<file>.ipynb_checkpoints/Untitled3-checkpoint.ipynb
The system cannot find the file specified.
I expected to load the HTML file to git hub and create my first web page, instead uploaded what seems to be my directory from c: drive and now I cannot unstage
I've download Firebase SDK and add it to my project manually, when i tried to upload file an error in the script appear.
The error is "Firebase/Crash/upload-sym-util.bash: Permission denied"
Finally I figure out the solution.Open the terminal and add the following command "chmod 755 path_of_Upload-sym-util.bash", and it will work fine.
I have created a new content type, and all of a sudden I can not upload any images to my site. It is a local server so disk space is not an issue.
The error is
The file could not be saved because the upload did not complete.
File upload error. Could not move uploaded file.
This value should not be null."
It is drupal 8.1.8
I have changed the temp directory to a place that www-data has full read and write permissions, as well as changing the files folder to 777, none of which seem to fix the issue.
There isn't even any apache errors that are being thrown, the only error is in drupal logs and on the page
error screen
on drupal root directory try
sudo chcon -R -t httpd_sys_rw_content_t sites/default/files
See the folder premissions here: https://drupal.stackexchange.com/questions/373/what-are-the-recommended-directory-permissions. This is a common folder permissions issue.
I fixed the problem on (Laragon, Drupal 9 & Windows 10) by changing the PHP from NTS to Thread Safe.
Hi i am trying to install phpbb-reputation system i followed the xml file for installation but while executing install_reputation.php i am getting this error ERROR: Could not open the file ./styles/afterburnerafterburner_config.html for reading.There are many errors in the same fashin. where i gues it is not going inside afterburner/template folder where .html file exists. where should i check this?
More error samples:
Refreshing the proFormell template
ERROR: Could not open the file ./styles/proFormellcaptcha_recaptcha.html for reading.
Sounds like it's a permissions issue; if hosting on a LAMP server, just run chmod 755 * -R in the website root directory. Alternatively you could also change file permissions using an FTP client
I just switched to a dedicated server. All of the sudden I can't upload files. My best guess because the tmp file isn't getting uploaded? Each time I try to do move_uploaded_file('tmp','new_image'); I get permission denied and failed to open stream.
I changed nothing in the script; but the absolute path obviously. Also, all file permissions are set to 705. I think it's something to do with the php.ini where the tmp files aren't working... I no longer have the default php.ini from shared hosting. Any ideas what might be causing this? Thank you
Here's my php.ini
extension_dir = ./
upload_tmp_dir = ./tmp
-- more but not relevant
`Warning: move_uploaded_file(users/126/question_images/question mark.jpeg): failed to open` stream:
Here's the permission denied error
Permission denied in ---.php on line 115 Warning: move_uploaded_file():
Here's the other error
Unable to move '/tmp/phpVrkytD' to '---.jpeg' in .---.php on line 115
Here's the part of the script to upload the image
$long_image_loc = 'absolute_path/'.$image_name;
if(move_uploaded_file($image_tmp_name, $long_image_loc) === true) {
return true;
}
This worked worked perfect on shared hosting. It's a really straight forward image upload script.