Chmod permission of specific file extension under a folder via SSH [closed] - ssh

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
My folder is /images/. There are .png, .gif and .jpg images in this folder. How do I change permissions of specific file extension .jpg to 644 under the folder via SSH?

Connect to the remote computer with ssh and then execute this command may work:
find /images/. -name "*.jpg" | xargs chmod 644

Related

Sending files and directories using scp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to send the following files from my computer to a remote computer using scp.
Directory1
File1
File2
Directory2
File3
File4
...
How can I send File1, File2, etc. such that they are saved to the same directories on the remote computer as they are on my computer (e.g. Directory1 and Directory2 are created on the remote computer and Directory2 contains File3 and File4)?
Copy the directory "foo" from the local host to a remote host's directory "bar"
scp -r foo your_username#remotehost.edu:/some/remote/directory/bar
The -r tells it to copy recursively.

Permission denied for module.h [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
/usr/src/kernels/2.6.32-358.6.1.el6.x86_64/include/linux/module.h
when i am trying to run this command as a root user its showing following error
bash: /usr/src/kernels/2.6.32-358.6.1.el6.x86_64/include/linux/module.h: Permission denied
plzz help!
Thanx
Did you run "/usr/src/kernels/2.6.32-358.6.1.el6.x86_64/include/linux/module.h"? It's not one executable command at all. It's a header file in the Linux Kernel source tree.

How to execute a command on an S3 file [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some video files stored on S3, and I want to get video information on them using ffmpeg. However, when I do a command such as :
$ ffmpeg -i 'http://test.s2.amazonaws.com/video.mov
I get a HTTP error 403 Forbidden response. How would I do this command? I also want to make sure not anyone can execute stuff on these files. Thank you.
Update: I was able to do this after making the ACL public-read=everyone for the video, didn't need to use s3fs after all.
You have two options:
You can download the file and run ffmpeg on localfile,
or you can use s3fs to mount your s3 bucket as a filesystem.

Can't dump mysql backup file [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have created a backup of my database and now I want to dump it in to my local machine. My machine is linux machine and I have th eroot password for machine. I tried to dump the in to my local backup database using root password on ssh, but i keep getting an errror . "ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)". Please suggest me what to do
This is the command I am using " mysql < backup.dump.gz"
Try:
gunzip < backup.dump.gz | mysql -u root -p
And enter your password when prompted.

Changing umask of apache on ArchLinux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
This didn't work:
Setting the umask of the Apache user
Arch doesn't have a /etc/apache2/envvars file, and changing the /etc/rc.d/httpd script didn't change anything.
Maybe someone can enlighten me how/where to exactly change the rc-script, so apache has an umask 002
After trying again, strangely editing the /etc/rc.d/httpd file works.
Just put
umask 0002
Right after the #!/bin/bash and everything works as it should.
No idea why it didn't work before, but well...