General :: Keep Chmod On Folder / Sub-folder And Files?
Nov 3, 2010
I got a folder that I transfer stuff to all the time. the folder is in chmod 775 but when i upload folders and files, they are given chmod 700, but i want it chmod 775 everytime i upload something. so far i have logged in to my linux computer and did a chmod -R 775 to the folder every time i uploaded something to it. is there a function somewhere to make it 775 everytime i upload or can i have something run a script, so i don't have to go in and write it everytime i upload something?
View 2 Replies
ADVERTISEMENT
Oct 28, 2010
I want to give a mounted folder /mnt/folder access so that 'root and the group test have read write access' and all other users have read access I understand most of the chmod command, the users groups world etc but where in the 'command' do you specify which 'group' or 'user' you are giving the read / write access to? in all the tutorials i've seen no where do you specify the actual group or user.
View 3 Replies
View Related
Nov 23, 2010
In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.
View 3 Replies
View Related
Sep 10, 2009
How would i go about copying all .jpg or .JPG files from a folder and all its subfolders to my /usr/name/pictures folder? I'm guessing I'd have to use some sort of .[jJ][pP][gG] to get all the pictures from other examples i've seen, but really not sure how to use that in a recursive cp.
View 14 Replies
View Related
Mar 4, 2010
i need to copy files from a folder called output files to another folder called running but im not able to do it i always get a stat error
View 14 Replies
View Related
Nov 2, 2010
i was trying to make a script to redo a chmod on a folder every 15min. by using crontab (*/15 * * * * /(link to script.sh)
now i didn't know much about the use of the scrips so i just write in the command i would in terminal chmod -R 664 /data/
i try to run the script in terminal and now i can't see the files in that folder. but acording to the folder properties, i am still using the disc space where the data use to be, so the data in the folder doesn't seem to be deleted.
the main focus i want is how to get the data back. scripting and others can come later.
how can i get to see my data again?
View 6 Replies
View Related
Jun 21, 2011
when i used windows there was this wonderful editor named Notepad++.it was perfect(it still is) some of its best and useful features of it (for me) was:
1-open all files in a folder when drag and drop the folder on it
2-search and replace a statement in all open files
3-have an extended mode which include special characters like
and so on.. i want to know if there is an editor with this feature in ubuntu?
View 8 Replies
View Related
Oct 22, 2010
i want make a bash panel and i want he will copy files from orginal folder to $user folder i mean when for explame i type i want install some server he say cp: cannot stat 'root/Desktop/2/files/beckup/sa-mp-steam': No such file or directory.
View 6 Replies
View Related
Aug 11, 2010
How do I change folder permissions without changing the permissions of the files within the folder?
View 6 Replies
View Related
Jun 11, 2010
I have a folderA that contains folderB that contains a lot of files. I would like to get rid of folderB, but not its contents. I want those contents to be inside of folderA. How can I accomplish this on the commandline?
View 2 Replies
View Related
May 13, 2010
I wanted to enable file sharing in for one of my folders under the home directory. I noticed that the 'not shared' and 'shared' always defaulted back to 'not shared'. And now I see what looks like an electrical plug icon symbol over the folder icon symbol like I might see used for some of the root folders. What does the new icon indicate about the folder attributes and why does file sharing default to 'not shared'?
View 1 Replies
View Related
Jul 2, 2010
Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,
Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.
$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.
View 1 Replies
View Related
Jan 9, 2009
id like to lock a user into his websites folder not his home folder. and i dont want him to be able to veiw anything outside that folder, only be able to play with whats inside that folder. is this possible?
View 4 Replies
View Related
Feb 4, 2010
In the linux machine we need to mount a folder names sever under apps folder with the user as steve. Also the steve user should have the permission to create the files in the folder. As of now, its mounted as root user.steve is in list of sudo users.
View 4 Replies
View Related
Sep 21, 2010
My Linux username is "virchanza" and my group is "virchanza".How do I make a publicly-accessible folder within my private home folder?
View 3 Replies
View Related
Feb 7, 2011
Is there a Commend to move the content of a folder -only image files no subfolders- to another destination folder?Actully, I had a look on the following post:Post tilte:Using mv to move the content of one directory into anotherFrom it, I tried that:
Code:
# rsync -a SOURCE/ DEST/
But, it copy a folder as all to the distination.
[code]...
View 10 Replies
View Related
Feb 10, 2011
I have an FTP account that when they log in they go to /var/ftp/uploads according to etc/passwd.I want to temporarily stop the uploads from coming in, but don't want to change the password on that account. If I rename the uploads folder to something else, what will happen when they go to log in since the /var/ftp/uploads path is no longer valid?
View 6 Replies
View Related
Jan 18, 2010
I wanted to create an user but don't allow it to see the other user's home folder so I made chmod 0750 /home/folder and it worked fine so I went ahead and decided to completely forbid access to the root folder and I had the "great" idea to make chmod 0750 /, and now I'm having problems with wine and other applications, in example I used to have a folder in this address 209.239.114.51/mmgr but now it's giving me errors and if I try to run some applications I got error "There was an error creating the child process for this terminal"
View 9 Replies
View Related
Jun 8, 2010
I have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?
View 1 Replies
View Related
Mar 20, 2010
I wanted to queue up all audio files in particular folder which also has .txt files.I tried$find /data/songs -iname '[^txt]' -exec totem --enqueue '{}' ';'Thinking that this will exclude txt like expression in 'grep'.It did not work
View 2 Replies
View Related
May 3, 2010
I have an external 2.5" eSATA drive which up till now was using via USB2.0 connection and was working perfectly. The drive is pretty new - I think less then a year and it's a Seagate too of which I think to be more reliable although still consumer based.I had connected the drive to FreeBSD 8.0 32bit on my server in ReadOnly mode using ext2fs in order to stream the information across my network.
Plugging the drive into Linux recently yielded everything performing fine, as the drive stores all the seasons of a TV show I started recognizing that things where outa whack when the linearity of the episodes stopped being sequential and previous episodes started playing when clicking an incremented episode.
The drive is formatted with the ext3 filesystem and I have already attempted to run e2fsck -p on it which showed up as the drive being 'clean'.I then attempted to use my notebooks eSATA Express card to connect the drive via the eSATA cable as I have found it to be more reliable then the USB2 / ext3 solution which I've had my fair share of problems with. However, the drives TOC or Journal maybe damaged by whatever reason so I will need to repair that.I stumbled across Magic Rescue and so far have compiled it but not used it as I wanted to be sure first if there was another way to do this.
View 5 Replies
View Related
Jun 24, 2011
In my bash script I need to move files in a folder if it is not in use.
Code:
for entry in `ls /root/shared_storage/input`; do
echo $entry
run=`lsof /root/shared_storage/input/$entry`
ru=${run:0:5}
echo $entry
if [ "$ru" == "" ]; then
........
It worked fine sometimes but sometimes it just get stuck at lsof. Is there any other way that I can use here to check if the $entry is using some other process?
View 10 Replies
View Related
Nov 2, 2010
Is there anyway to make a hash (or similar), of a folder of files, for data integrity purposes?
I tried with sha1sum, but it cant do it.
Is it possible with some other software?
View 2 Replies
View Related
Jun 10, 2009
I'm trying to copy a list of files except the files which has ".log" in the filename to another folder.I can run it correctly when I am located in the Source folder, but not when I am in any other location.cd /home/me/Sourcels /home/me/Source -1|grep -v "^.*log$" |xargs -n 1 -iHERE cp -r HERE /home/me/DestinationHow can I indicate both Source and Destination Folder?
View 2 Replies
View Related
Apr 12, 2010
How to compare files on ftp-server and in a folder in Linux?
View 4 Replies
View Related
Apr 28, 2011
I would like to ask you if there is any maximum allowed number of files per folder in linux (without risking it to lose everything). I am using openuse 11.4 with latest kde (4.6?).
I am trying something fast and dirty and it might be that one folder will contain like 10^6 files.
Is there is anything I should be warned about that?
View 10 Replies
View Related
Nov 19, 2010
i want to copy the latest 10 files from one holder to another. All the files start with the number 2 and this is what i have so far:
lt -lt 2* | head -10
So i want to copy that output of 10 files to another folder
View 5 Replies
View Related
Jul 23, 2010
I need to know the last 10 modified files in a folder.
View 8 Replies
View Related
Jun 1, 2011
Used following command to find out the top 10 big files in the system But it is having its own limitations as it consider files and directories both.
Code:
I would like to get the following information.
1)top 10 big files.
2)top 10 big directories.
File size with human readable output.
As executing
Code:
But when i add -h option for human readable file size its giving me wrong output.
Code:
View 10 Replies
View Related
Apr 7, 2010
how to hide folder containing files in ubuntu 9.10
View 1 Replies
View Related