Re: hi masters of linux, surely you know some tricks...
Subject: Re: hi masters of linux, surely you know some tricks... Date: Thu, Jun 28, 2001 at 10:10:46PM -0400 In reply to:John S. J. Anderson Quoting John S. J. Anderson([EMAIL PROTECTED]): On Thu, 28 Jun 2001 22:59:03 +0200 (MEST), thomas anderson [EMAIL PROTECTED] said: thomas I want to try to put a perl script in the /usr/lib/perl thomas directory however I don't have permission access. boy, the script kiddies get lazier every day, don't they? Thanks! That was also my first impression. -- Warning, keyboard not found. Press Enter to continue. ___
Re: [users] hi masters of linux, surely you know some tricks...
* MaD dUCK ([EMAIL PROTECTED]) [010628 14:21]: also sprach thomas anderson (on Thu, 28 Jun 2001 10:59:03PM +0200): I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? no. user scripts don't go there. why would you want to place it there anyway? what function does the script have? is it just for yourself, then put it into $HOME/bin. if it's for a group of users, put it there too and give appropriate permissions. if it's for all, then it goes into /usr/local/bin. you have to be root for the last option. Not necessarily, anyone in group staff should have permission to install into /usr/local. martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED] -- no keyboard present. press f1 to continue. zen engineering. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] pgpEOwLxGIg7D.pgp Description: PGP signature
Re: hi masters of linux, surely you know some tricks...
it's a system that I *have* root access but I wanted to try and *break* it as an ordinary user if there was a way... If you find a way, please report the bug. :) Seriously: Do you mean that this is a system to which you have no root access, or are you the system administrator trying to give your users such an ability? In the latter case, a method could be devised. -=greg -- Sent through GMX FreeMail - http://www.gmx.net
hi masters of linux, surely you know some tricks...
Hi masters of the linux community surely you know some tricks to this..., I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? TIA, -- Sent through GMX FreeMail - http://www.gmx.net
Re: [users] hi masters of linux, surely you know some tricks...
also sprach thomas anderson (on Thu, 28 Jun 2001 10:59:03PM +0200): I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? no. user scripts don't go there. why would you want to place it there anyway? what function does the script have? is it just for yourself, then put it into $HOME/bin. if it's for a group of users, put it there too and give appropriate permissions. if it's for all, then it goes into /usr/local/bin. you have to be root for the last option. martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED] -- no keyboard present. press f1 to continue. zen engineering.
Re: hi masters of linux, surely you know some tricks...
If you find a way, please report the bug. :) Seriously: Do you mean that this is a system to which you have no root access, or are you the system administrator trying to give your users such an ability? In the latter case, a method could be devised. -=greg - Original Message - From: thomas anderson [EMAIL PROTECTED] To: debian-user@lists.debian.org Sent: Thursday, June 28, 2001 1:59 PM Subject: hi masters of linux, surely you know some tricks... Hi masters of the linux community surely you know some tricks to this..., I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? TIA, -- Sent through GMX FreeMail - http://www.gmx.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hi masters of linux, surely you know some tricks...
thomas anderson wrote: Hi masters of the linux community surely you know some tricks to this..., I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work . is there I way to do this without becoming root or sudo? No. If there were, it would be a catastrophic security hole! (There is a way that can be used if you have the ability to shut the machine down and interrupt lilo's startup.) -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C The Spirit of the Lord is upon me, because he hath anointed me to preach the gospel to the poor; he hath sent me to heal the brokenhearted, to preach deliverance to the captives, and recovering of sight to the blind, to set at liberty them that are bruised... Luke 4:18
Re: hi masters of linux, surely you know some tricks...
On Thu, Jun 28, 2001 at 10:16:31PM +0100, Oliver Elphick wrote: thomas anderson wrote: is there I way to do this without becoming root or sudo? No. If there were, it would be a catastrophic security hole! (There is a way that can be used if you have the ability to shut the machine down and interrupt lilo's startup.) Yeah, but I think that falls into the category of becoming root or sudo, which thomas wants to avoid. -- That's not gibberish... It's Linux. - Byers, The Lone Gunmen Geek Code 3.12: GCS d? s+: a C++ UL$ P+ L+++ E- W--(++) N+ o+ !K w--- O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv+ b+ DI D G e* h r y+
Re: hi masters of linux, surely you know some tricks...
thomas anderson wrote: I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? I think you misunderstand how Unix/Linux systems are arranged. If the script is for your use only, make a 'bin' directory in your home, add $HOME/bin to your PATH and put the script there. If the script is for use by all of the users on the system (root, yourself, others if there are any), login as root and copy the script to /usr/local/bin. This is generally where executable files that are not controlled by the packaging system go (some people use /opt/bin). Add /usr/local/bin to your PATH if it's not alredy there. Don't forget to give the script appropriate permissions so everyone who is allowed to use it can. /usr/lib/perl is for perl library files that came from the perl debian package. It's a good idea not to add things to there by hand (ie. let dpkg decide what goes there). I hope that clears things up a bit. Matthew
Re: hi masters of linux, surely you know some tricks...
On Thu, 28 Jun 2001 22:59:03 +0200 (MEST), thomas anderson [EMAIL PROTECTED] said: thomas I want to try to put a perl script in the /usr/lib/perl thomas directory however I don't have permission access. boy, the script kiddies get lazier every day, don't they? john.
Re: hi masters of linux, surely you know some tricks...
On Thu, Jun 28, 2001 at 10:59:03PM +0200, thomas anderson wrote: Hi masters of the linux community surely you know some tricks to this..., I want to try to put a perl script in the /usr/lib/perl directory however I don't have permission access...I tried symlinking it but it still won't work. is there I way to do this without becoming root or sudo? as others have said, don't do that. if it's just for you, make your own lib directory in your $HOME directory: mkdir ~/lib - put your perl modules there, then perl -I$HOME/lib yourscripts.pl for executables, do mkdir ~/bin - put programs here export PATH=$HOME/bin:$PATH -- here's the philosophy -- $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games every portion between : is a path that's searched when you ask for a command (and you don't specify the full path yourself). most of the stuff you run will be from /usr/bin, such as apropos findpagertracepath ...c... cvs locate passwd uptime diff maketail vi any of these can be overridden by putting a similarly-named executable in the /usr/local/bin directory -- which is part of the reason it's there at the beginning of your $PATH. similarly, for perl's @INC: $ perl -e 'print join \n,@INC' /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5 . put your own modules into /usr/local/lib/site_perl and leave the system stuff alone. the system utilities (apt-get, dpkg) will take care of the system directories for you; you can munge the /usr/local/ stuff to your heart's content. also makes it easier to back up changes you make to your own system. -- DEBIAN NEWBIE TIP #59 from Will Trillich [EMAIL PROTECTED] : Wanting to SYNCHRONIZE YOUR SYSTEM CLOCK periodically? If you think your system clock gathers or loses a few extra seconds each day, you're probably looking for ntpdate which queries several network time protocol servers, and sets your system clock accordingly. apt-get install ntpdate ntp-doc then browse /usr/share/doc/ntp-doc/html for info. Also see http://newbieDoc.sourceForge.net/ ...