Dear All,
I'm searching for a documentation on file write access and user connection on linux environment. For example your folders are protected and that anonymous user haven't access writes. You have created user xyz which only have write permission. How to make php connect to this user and write the file you requested.
Thanks from helping
Dilbert137
csv file and file permissions
Moderator: General Moderators
-
Dilbert137
- Forum Commoner
- Posts: 57
- Joined: Sat Jun 02, 2007 5:02 am
- Location: Mauritius
Re: csv file and file permissions
...Are you talking about FTP?
-
Dilbert137
- Forum Commoner
- Posts: 57
- Joined: Sat Jun 02, 2007 5:02 am
- Location: Mauritius
Re: csv file and file permissions
No not ftp but a creation of file which need a specific user so that to be created else it says denied.
Regards
Dilbert137
Regards
Dilbert137
Re: csv file and file permissions
*nix isn't as powerful as Windows' NTFS when it comes to file permissions: you can't give specific privileges to specific users.
If you want something to be read-/writeable by a user and completely blocked for everyone else, change ownership of it to that user and set the permissions as 0600 (for files; 0700 for directories).
But I still don't get what
If you want something to be read-/writeable by a user and completely blocked for everyone else, change ownership of it to that user and set the permissions as 0600 (for files; 0700 for directories).
But I still don't get what
means. "Connect"? Write what file who requested?Dilbert137 wrote:How to make php connect to this user and write the file you requested.
-
Dilbert137
- Forum Commoner
- Posts: 57
- Joined: Sat Jun 02, 2007 5:02 am
- Location: Mauritius
Re: csv file and file permissions
Yes i understand that write permission must be set but don't forget hackers who want to get control of your website and do illegal things. Thus i would like to know if i can write a script connecting to a specific user who have write access and create my file. Not letting write access to everyone which can lead to few hackers visits.
Regards
Dilbert137
Regards
Dilbert137