I am trying to setup a home server from Samba 3.2, however, on the client end (running Windows Vista) the mapped network drive is viewable and I can also open any files within the main shared folder. The issue is that I cannot create any files from Vista, nor copy anything into there.
I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC
I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems.
The folder (and all recursive folders) I want to be writable is:
/home/mydomain/public_html/uploads
And I want only scripts run by the user "songbanc" to be able to write to this directory.
I have tried the following:
I'm driving myself crazy trying to figure this out. I hope someone can shed some light on my problem.
I need to know the simplest way to set default file permissions on a folder I created: /var/www/uploads
So when someone accesses the site they insert some information and then upload a file to the server, inside that uploads folder.
I have a script (test.sh) on a local server, which when I execute with terminal works fine. The script removes a directory and creates a directory local. Then it connects to a remote server using "ssh -i $private_key .." and copies a file there.
When I execute this script in jenkins with
sh test.sh
it doesnt work. Im getting the following errors:
rm: .. Permission denied
mkdir: ..
I have a basic linux server setup (setup locally on my network with no outside access) and i wanted to FTP files to the /var/www directory.
I have installed vsftpd and i have access to the server via FTP on another machine.
The problem i am having is the permissions on the directories and files uploaded are no the same as root, although i have setup a user with the admin user group which has root
I'm in the process of moving my sites from a shared hosting to a VPS.
Ok so I am trying to install nano in terminal on my macbook. I downloaded the file, unzipped it, and located the folder/files in terminal. I ran the ./configure command. Then "make." Both ran fine. On "make install" I keep getting an error about permissions and making a directory.
So I use mkdir, intend to create two folders like this
$dir1 = 'upload/'.$id;
$dir2 = 'upload/'.$id.'/s';
if (!is_dir($dir1)){
mkdir($dir1, 0744);
mkdir($dir2, 0744);
}
This command successfully creates the two folders I need in my xampp localhost.
However in my nginx linux cloud vm, only the $dir1 can be created.
I have already give the ownership of the 'upload/' folder to nginx, and
Accidentall I created the folder on remotely server (Server OS is Linux) using php: mkdir("folder_name",0);
Now I can not delete this folder from server.