logo       

Re: newbie question about chmod: msg#00091

Subject: Re: newbie question about chmod
At 7:53 pm +0200 24/4/05, Marc Manthey wrote:

when i type:

marxg4:~ marxg4$ chown -R marxg4 /Users/marxg4/Desktop/dbeacon
chown: /Users/marxg4/Desktop/dbeacon: Operation not permitted

"Operation not permitted"  ....what can i do ?

The programm needs no administrator rights.

Here are two ways to run temp.pl after creating it:


Eremita:~ jd$ cd
Eremita:~ jd$ echo '#!/usr/bin/perl
print qq~hello\n~;' > temp.pl

Eremita:~ jd$ perl temp.pl
hello
Eremita:~ jd$ ./temp.pl
hello
Eremita:~ jd$

The file does not need permissions changed in this case.

If you omit the shebang the first method will work but not the second:

Eremita:~ jd$ echo "print qq~hello\n~" > temp.pl
Eremita:~ jd$ perl temp.pl
hello
Eremita:~ jd$ ./temp.pl
./temp.pl: line 1: print: command not found
Eremita:~ jd$

If you need to change the permissions on temp.pl to make it executable, then

chmod +x temp.pl


JD






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe