General :: Make A Script To Redo A Chmod On A Folder Every 15min?
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.
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?
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.
I have an OSS 11.3/WinXPPro dual boot system. Unfortunately, Windows is a mess because of a botched restoration. I guess I need to start again from scratch. I assume if I attempt to reinstall Windoze that the whole dual boot system is going to get botched up anyway.I would like to know what would be the best approach since I am going to start by installing Windoze to the HD. Here is a readout of what I currently have from gparted:
Partition / File Sys / Mount Point / Flags /dev/sda1 ntfs /media/sda1 /dev/sda2 extended boot,lba
I am trying to install Gentoo. Currently I have windows 7 on my primary Hard Drive.I decided to add in a second HDD that I got for free and use linux on that.I got through my entire install and at the end I accidently wrote grub to my second hard drive.When I rebooted it went straight to windows.So I have some questions. When installing to the secondary HDD does my boot partition and swap need to be on sda? or can they reside on sdb?Also I tried to re-issue the grub-install command and it said bash: command not found. How can I get grub to re-install? I tried to emerge it and same issue no command found.Do I need to redo the entire reinstall?My last question is If I have more then enough HDD space how much is too much for linux? Most people say 30 GB is all you need from what I have read but I assume 160 GB is going to go to waste?
I have set up a home server with ubuntu desktop since im new to this and need the gui. I have no problems with the lamp package or setting that up. My question is, can you setup a ftp server and then connect to it from a windows pc on the same network with a client like core ftp? I want to do this to add files and make chmod a little easier if possible.
i have been running windows from ME through to Windows 7 over the years. and i must admit that because of all the flaws with the earlier versions and those wonderful little viruses that seem to show up even though your teenagers swear they didn't do anything ,have made me somewhat skilled at formatting and reinstalling the OS to the point where i have done it for several other ppl to help them out. I rather enjoy doing it actually.
and i have been a big fan of lets just call it "open source" windows software. now this ubuntu thing seems to have taken some of the fun away..
i ran the cd version of 10.10 and really liked what i saw so i installed it alongside my windows 7. naturally as luck would have it something went astray and i can no longer boot to win7. not a big deal. i was going to format and reinstall anyways. ha ha.
i have been reading through the forum learning what i can but now my question
i still have a machine running windows on my home network.
what i would like to do is make a shortcut to a folder on it from my ubuntu desktop. i do have full access to the machine and the folder , i would just like a shortcut .
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"
I am attempting to make a shared folder for people that VPN into the network. This folder needs to be accessible to windows and mac machines. So far I have the VPN through ppptd working. I just don't know how to make a folder. I feel like this should be fairly easy. I am using Lucid Lynx server edition.
I have a similar question: How to make a share folder of virtualbox if I have installed linux Ubuntu 10.10 in virtualbox machine virtualbox is my guest machine and Linux Mint is my host machine. I have installed VirtualBox OSE in Linux Mint and I have installed Windows XP/7, made a sharing folder from guest machine Windows XP/7. My host machine is Linux Mint/Ubuntu, I mean it is on my PC. How to make a share folder in virtual machine linux ubuntu 10.10 LTS in virtualbox OSE to host machine Linux Mint 11 Katya?
I have MS BT notebook mouse 5000 which connects and works fine with my FC13 till the mouse goes to sleep after 10-15min. Then it does not reconnects/awakes. Using kbluetooth, I press 'connect', it shows 'connected' and then in 1-2s disconnected again.No other action, except removing the mouse from the list and repairing from the beginning I found in the net this problem some 2 years ago was corrected and was working
I've had it for about 2 months and I know some of the complicated things. I was wondering how I would make Ubuntu 10.10 ask for the root password when ever looking at a folder, picture, mp3 file, etc. Is this possible
I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:
I have a directory full of files. For each file in the directory create a new subdirectory with each files name.
I tried this:
#im already in this directory aaa=./* for a in $aaa do mkdir $a done
One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.
I tried stuff like: aaa=./* for a in $aaa do mkdir "'"$a"'" done
This of course also did not work.
Additional I tried just creating a folder with the name of one of the files and I got this:
mkdir: cannot create directory `(audio) - R56339.EXE': File exists Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?
Just to be clear here are the contents of this folder: ~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls (audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE (Modem-datafax-V92) - R54403.EXE OEM_Applications
I just maked an ext4 partition by the help of gparted. Ubuntu is my only OS no dual boot. Using Ubuntu Maverick. The problem is partition must be open as root to do any work else it wont even allow me to open file,create folder,cut copy paste or anything.
After removing GDM, XFCE4, and the crap-load of dependencies that came with it, something must have gone wrong. I can not place items nor delete items any more. How do I fix this problem of mine? I'm using KDE at the moment.
Code:
Could not make folder /home/theif519/.local/share/Trash
Deletion of files is necessary. I have installed libtrash hoping it'd work, but it didn't, I even did chmod 755 like it suggested I do. What do I do?
I want to make it now because it is still under the size of a dvd 3.7GB and i want to put it safe on a dvd to restore fast and not have to customize anything in case of a disaster , like me running dd again )
How do I redo a dist-upgrade? Looks like I broke something during upgrade and now I don't want to restart until I forced the upgrade routine to run a second time.
I have a truecrypt partition on an nvidia fakeraid raid0.ore there is no data recognizeable to ubuntu's kernel on startup and I think it is causing a big slowdown for me every time I boot up, which takes over ten minutes every time. Attached are bootchart results.What I would like to do is know how to remove dmraid from the startup process. I can't find any scripts in /etc/rc*.d and all of the information I can find on these forums is about how to enable dmraid on boot, not disable it.
Manually using dmraid takes nearly no time at all, which is what I did before this kernel upgrade since ubuntu didn't put dmraid in the startup process. I can't see why it takes dmraid ten minutes to detect raid devices now! The only clue I can see is that in the startup process with the splash screen disabled it talks about examining inodes on both drives in the array and then goes on to spit out stuff about raid 0, raid1, raid2, raid3, raid4 and on and on so it seems like it is loading raid arrays that don't exist and never have.If any bootchart gurus have any advice, please feel free to throw me a bone, I am in fear of restarting!edit: for some reason ubuntuforums shrank my images so that they are unreadable by anybody except those with a large projector.
I have a netbook with limited storage. 8GB internal and a 16GB SD card. Right now I have Ubuntu installed on the 8GB internal storage with a few directories mounted on the 16GB SD card. (/usr and /usr/local). This has worked out fairly well for me as having the entire installation on just the 8GB drive was too limiting. When I tried this I didn't know how big to make the partitions I was mounting in. These partitions are 7.06GB for the root (on internal storage) 2.8GB for /usr/local and another 2.8GB for /usr (both 2.8GB partitions are on the 16GB SD with the extra space being media storage for me). It seems I didn't make these partitions big enough because I can no longer perform updates. I'd like to redo all of this from scratch. how would you recommend I partition this next time around? Do I need individual partitions for the separate mount points that aren't root? Are those the directories I should be mounting on the SD card?
How to use CHMOD in linux? When I try to delete a file/folder, permission is denied. What exact params must I give for chmod here? This is what I need to do. Execute a command ./build.mips , but I get permission denied error.
I had created a file under a directory & set the permissions through chmod command but when I create another file under this directory, I get the default permissions. Is this due to umask or can I set the file permissions through chmod under a directory.