General :: Parameters To Be Used With Chmod?
Jan 12, 2011
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.
kirti@sgf:/disk/go$./build.mips
-bash: ./build.mips: Permission denied
View 3 Replies
ADVERTISEMENT
Jul 17, 2010
I accidentally did a 'chmod +x foo' when i meant to do a 'chmod a+r foo'.
-rw-r--r-- 1 casper trad 53 Jul 17 22:41 filegore
-rw-r--r-- 1 casper trad 13 Jul 17 22:41 filelemme
-rw-r--r-- 1 casper trad 24 Jul 17 22:41 nix
[code]....
View 1 Replies
View Related
Apr 5, 2011
how to get permission by chmod
View 8 Replies
View Related
Jan 4, 2011
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.
View 5 Replies
View Related
Mar 21, 2011
I've a script that it's invoked with n-variable parameters. Here's an examples:
Code:
./myprogram.sh inputdir FIELD1 FIELD2 ... FIELDN outputfile In the script I would like to get the FIELD names that were passed.
View 4 Replies
View Related
Mar 13, 2010
I have the following bash script:
Code:
Which has the name 'extractemails.sh' and works just fine.
However, i whish to be able to give the url (or any other url) as a parameter when i run the script like this: $ extractemails.sh [url]
What should i change in my code? i have never tried passing parameters to scripts before.
View 4 Replies
View Related
Mar 6, 2011
the problem is i am changing the parameters in main.cf file but postfix is not accepting them. its still inheriting my system's host name and domain
here is my configuration
my main.cf file
myhostname = mail.example.com
mydomain = example.com
myorigin = $domain
[Code].....
Nothing is accepted. I have test this on CentOS 5.5 and Fedora 14 both have the same result.
View 3 Replies
View Related
Dec 21, 2010
I am reading a tool manual and it instructs to use such a command:
Code:
Especially, what does the 'sort' parameters and awk do?
View 8 Replies
View Related
Apr 24, 2011
If I am not the file' owner or root, can I use chmod to change the file permission?
Assume I have group/write access to the file, e.g. 775
View 2 Replies
View Related
Jun 13, 2011
I'm used to setting up SGID on a directory
chmod -R g+s example and then
chmdo -R 750 example
And have the directory and all sub-directories preserve the set-group-ID. On CentOS SGID gets overridden by the second command.The OS is CentOS release 5.6 (Final)In theory, and like it says on this page, "if commands like chmod routinely cleared these bits on directories, the mechanisms would be less convenient..." and it's exactly whats happening. chmod -R 750 is effectivelly removing the SGID.How can I make g+s permanent?
View 1 Replies
View Related
Apr 14, 2011
How can I give execute permission to chmod command from run level 3.Because in GUI mode we have the execute option in the properties of file. E.g. I gave following command
chmod -x chomod
After that I want to give the execute permission (x) to chmod command again but how from command prompt?
View 5 Replies
View Related
Mar 16, 2010
So I gave the following permission using sudo su to some directories:
sudo a+x -R ~/<SOME FOLDER>/*
sudo a+w -R ~/<SOME FOLDER>/*
After doing this, I can access write and read all directories but my terminal shows these folders highlighted and I really dont like this. Is there any way they can look like before (with no highlights)?
View 7 Replies
View Related
Mar 28, 2010
Is it possible to change only directories access permissions recursively with some linux command. I need to set x (access) permissions on directories but not execute on files. [URL]
chmod - change file access permissions
-R, --recursive
change files and directories recursively
View 2 Replies
View Related
Feb 23, 2011
can chmod make any file executable?
View 4 Replies
View Related
Apr 11, 2011
that works to disallow non-owners from renaming the file, but what I wouldlike to do is disallow EVERYONE ( including the owner of the file ) fromediting, moving, or changing the filename once it is created. the only personwho should be able to make those changes is a special user.
View 13 Replies
View Related
Jun 29, 2010
I'm trying to download two sites for inclusion on a CD:URL...The problem I'm having is that these are both wikis. So when downloading with e.g.:wget -r -k -np -nv -R jpg,jpeg, gif,png, tif URL..Does somebody know a way to get around this?
View 2 Replies
View Related
Sep 18, 2011
I have made a script ocrun param1 param2 that calls another program like oprun param1 ..
i would like somehow param3 and all following (parami) to be copied to oprun.. ex:
`ocrun param1 param2 param3 param4
`oprun param1` param3 param4
How can i achieve this ?
View 1 Replies
View Related
Feb 11, 2010
This is a WHAT I WANTAND NEED IN A LINUX DISTRO, not a your preference request. Fairly literate with Windows XP, but would like to find a Linux Distro with specific features. Computer used for music (over 14k mp3, ogg Vorbis, etc files) and burning musical learning tracks (I'm a barbershopper) as well as simple surfing and email. Not a gamer. Older Computer: PC with 1.4 GHz Athlon partitioned 320 Gig HD (Windows XP and a Linux Distro??) Only have CD-ROM, cannot download & burn iso DVD's or upload from them. (Can do CD's) Do have a 1 TG Verbatum external HD and a newer computer with a dvd recorder/player
So:
1) MUSTt have a distro that doesn't require a DVD for installation.
2)MUST be able to "update" rather than re-install subsequent releases ( which require backing up files, etc)
3) Like the description of Linux Mint Helena, but it requires installation from a DVD and a re-install..
4) Free distro since I'm learning and trying out different OS's and really resent the increasing cost of Windows OS's as well as the complexity and problems with Windows. I've found that UBUNTU 9.10 doesn't like me. I am very comfortable with LINUX MINT HELENA.
View 5 Replies
View Related
Nov 16, 2010
We just doubled the RAM on our RHEL 4 production servers...Oracle from 16gb to 32gb and Apache/JBoss from 8 to 32 gb. I am trying to figure out how to get the biggest bang from the increased RAM. Should kernel.shmmax be upped to be 50% of the 32gb....from its current 8gb? I need to create the largest possible SGA and was unable to do so, apparently because the kernel.shmmax value had gone unchanged.
And for the JBoss web servers, also RHEL 4, and particular kernel changes which can take advantage of the increased RAM and provide an immediate performance improvement?
View 7 Replies
View Related
Aug 11, 2010
I want to install Mint 9 KDE but I need to specify some installation parameters. I need to set the default filesystem as EXT3 so I can create a disk image with Acronis True Image that doesn't support EXT4 yet.
I've done the same with Ubuntu Server 10.04 by including the parameter 'partman/default_filesystem=ext3' at the installation console. I know Mint 9 Gnome can also be installed direct from the CD, but the KDE Live DVD doesn't give me any such option - just the desktop installer.
How do I customise the installation of Mint 9 KDE?
View 2 Replies
View Related
Jun 16, 2011
Why does this work
Code:
for myfile in `find . -name "R*VER" -mtime +1`
do
[code]...
View 2 Replies
View Related
Feb 16, 2010
I am using chmod(), function to set permissions for my files/directories.How can I set -R flag for it???
View 4 Replies
View Related
Mar 31, 2010
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.
View 3 Replies
View Related
Feb 28, 2011
I work in a shared computing environment and the default setting is r-x for group and others; it's upto the users to change this. I can chmod and change the permissions for all the files. However any new files created all have the default permissions. Is there anyway to change that so that I don't have to chmod everytime or run chmod as a cronjob?
View 1 Replies
View Related
Jun 17, 2011
I've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod 777 xxx has been tried to make it work, but the error remains when I opened the applications again.
To be specific, I want to install phpFreeChat on my system, so I put those files in the /var/www/html/freechat directory, cd there and typed chmod 777 data/private, chmod 777 data/public on bash. Here's the result of list -al data:
drwxr-xr-x. 4 root root 4096 Jun 17 15:07 .
drwxr-xr-x. 13 root root 4096 Jun 17 15:22 ..
drwxrwxrwx. 2 root root 4096 Jun 17 15:07 private
drwxrwxrwx. 3 root root 4096 Jun 17 15:07 public
These all seemed all right to me, until I typed http://localhost/freechat in my browser. Here's the result:
phpFreeChat cannot be initialized,
please correct these errors:
/var/www/html/freechat/src/../data/private
is not writeable
[code]....
View 3 Replies
View Related
Aug 2, 2010
I have an external USB hard drive (sdb1) mounted at /media/Iomega HDD. When I try to do a chmod to a directory on this drive, chmod doesn't give me an error, but it doesn't change the privs - even when I'm root. Why is this?
Code:
root@d-desktop:/media/Iomega HDD# ls -lart
total 2176732
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# chmod -v a+rwx Unison
mode of 'Unison' changed to 0777 (rwxrwxrwx)
root@d-desktop:/media/Iomega HDD# ls -larth
total 2.1G
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# /usr/lib/klibc/bin/fstype /dev/sdb1
FSTYPE=unknown
FSSIZE=0
root@d-desktop:/media/Iomega HDD
View 14 Replies
View Related
May 12, 2011
Simple question: what parameters can be used to shutdown a computer running Linux/OSX in 30 seconds? I've always run Windows, where I would go shutdown -s -t 30 but the parameters are different. I've looked it up here but it will only let you shut a computer down at a specific time (like 8:00) rather than in a specific amount of seconds.
View 4 Replies
View Related
Aug 12, 2011
I've accidentaly corrupted my fstab and cut the ends of lines. There are now disk uid, mount point, filesystem for root and swap, but the mount parameters are missing.The system boots as readonly. What are default fstab mount parameters in Debian for ext4 root and swap?
View 1 Replies
View Related
Jan 7, 2011
I hope to add a wrapper script for the command with different parameters. For example, for any Unix command or script, like below:
command.sh -s p1 -o p2 -q p3
or
command.sh
Probably we could do as this way
cat wrapper
$1 $2 $3 $4 $5 $6 $7 | tee test.log
(assume it has 0 to 6 parameters)
and use it like
wrapper command.sh -s p1 -o p2 -q p3
wrapper command.sh
It is a little ugly to list all fixed parameter as above, do we have better code to handle various parameters?
View 4 Replies
View Related
Feb 2, 2010
I have a generic monitor which has problems with many Linux distros. We can boos Sugar on a Stick v2 by pressing <tab> at the Sugar splash screen and adding the boot parameter "nomodeset". I'm handy enough to do this, but my wife, well, not so much. So is there a way to make that boot parameter permanent?
View 1 Replies
View Related