i would like to ask , because in some scenario, some class.php are not being run. even if it is in full permission,
sample.
i have a linux pc. and every time i create class.php file. i modified it like :
sudo chmod -Rf 777 file.class.php
then after that. it works on my localhost.
BUT when i transfer the file using FileZilla to other server its not running.
even if it has Full Permission 777 in File Zilla.
Can anyone explain whats the reason behind this ?
coz i cant explain to my superior why its that running but in my localhost/Pc its running.
and they have the same File and codes inside it.
please help me..
thank you very much.
It's possible that your server automatically modifies the permissions of the file when you upload it even when you have it set to something in filezilla. I know that Windows with NTFS can sometimes strip permissions off of a file depending on how you copy/move the file. This might be what is happening with your linux computer.
Related
I'm conducting a study and I need to store some data. I found an open source data scraper and parser online: https://github.com/hicsail/materials
I've followed some instructions (some of which but not all came from here) and
installed Postgres, created a docker-compose.yml file, and created a config file:
Above is the config file, and this is the .yml file
I started by going into the pgAdmin folder and running "docker-compose up", after which, this was the result:
I'm not sure if the "no privileges flag" means anything. Anyway, after this, I opened up a localhost:5050 in my browser and logged into pgAdmin.
I named the database "materials" as this was what it was supposed to be named.
Same thing with the username and password; both were named "root". However, when I run the command to parse the data, I'm getting this error:
I've been stuck on this for a long time now, and I can't seem to find any solution. This is running in a python2.7 conda environment, as per the requirements. These were the other installed libraries (I'm not 100% sure those were the exact versions, but I tried to get them as close as possible).
psycopg2==2.7.3.1
requests>=2.20.0
SQLAlchemy==1.0.9
wheel==0.24.0
If I need to clarify anything please let me know.
Thanks.
I found an answer for this. I had to go into services, then to postgres, and stop it from running. I then had to kill the port "5432" and run it again.
I am currently on a machine where i have to change an existing script.
Nobody knows what path are.
I only know that modifies a file at startup , and it expects to have internet to do.
I try to find it with lsof but it looks like it is not enough "fast". It shows me nothing. I try to do with wireshark if he would send something, but nothing too.
I try to search with grep but nothing conclusive.
The machine is under OpenSuse x64 and i can be root.
Anyone have a solution for me? Thank you in advance.
Rc files or profile files are used to run commands on startup(depending on login or non login shells). These could be Generally in /etc - global and in home directory for user specific setting.
Have your considered checking contents of /etc/bashrc or /etc/bash.bashrc or profile? What did you grep for?
Iam working on POS software using winforms. Iam trying to programmatically writing XML file (which contain some encrypted information about software serial number) to C:\Windows\System32 directory. But when i write i get an error Access denied.
Can anyone please explain how can i write this file with full permissions in this directory in windows 7 as well as in windows XP???
Any other suggestion or better way to do this will also be welcome.
Thanks in advance.
You'll need to be an administrator on the machine to write to the Windows directory. In addition, on Vista and later, your process will need to be "elevated" (otherwise known as Run As Administrator). You can configure this on your application's property sheet, as discussed here, or with a bit more work, do it programmatically.
It's bad practice to write to that directory, though, notwithstanding all the (misguided) software that does that. Save your files somewhere else. %appdata% or %localappdata% (directories specifically meant for application data) are good choices.
I just switched my site's server from Windows to Linux, and am finally able to control file permissions from my ftp. So, seeing that all permissions were 705 by default (and not wanting just anyone to have permission to execute), I went and changed everything to 744.
Now, gif and jpg links don't work, pdf download links don't work, php links don't load, and mov files don't play. Setting things back doesn't seem to help. Even setting to 777 gets me nowhere.
Any ideas on what might be going wrong? I've been googling file permissions all day (solved that problem with the Linux switch, which now bred a new problem), and I don't think anything has escaped my attention.
Thanks!
Try to set owner permissions. Apache runs usually under www-user or some other sandbox user, so you wanna try to use chgrp, chown an chmod.
Solved. I was under the mistaken impression that group and public did not need x. On the contrary, x is used to read the files. I set the relevant folders to 755, and everything worked. Why it didn't work when I had all set to 777, I don't know. Lack of sleep, probably.
Thanks!
hi the win mobile 6 code tries to write files on network shared folder, but always gets UnauthorizedAccessException. I have checked permission and security setting on the folder and the code can read the file but just cant write to it. The code runs under administrator account which has full control over the folder and files. It is in vs 2008 professional with device emulator.Any help please? thanks very much.
You've verified that you can write the file outside of your program, correct? i.e. logged into a machine account and tried placing that specific file there.
Do you have access to the system that hosts the file? If so, you can check it's access logs to verify which account your app is using.
My guess would be that either your app isn't using the account you think it is, or that the admin account may doesn't actually have write access to that folder or file.