LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2003, 06:22 PM   #1
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Can you su and enter pass in same command


I'm writing I guess what's called a script for system menus in KDE so that I can right click a tarball and have it do it's thing so I don't have to type in all the commands to install. I know that installs can be different from program to program but I havn't seen a ton so I'm willing to use this and go do it the manual way if this doesn't work for a install file

anyways, here's my systemMenu file. It has problems and since I don't really know what I'm doing I could use some general help with it.
[Desktop Entry]
ServiceTypes=application/x-tgz
Actions=install
[Desktop Action install]
Name=Basic Install
Icon=ark
Exec=tar zxf %u
Exec=cd ./%u
Exec=make
Exec=su
Exec=make install
Exec=rm -r %u


I havn't gotten it to work because I can't su and make it install to check it. Oh, and at the end when I tell it to remove the directory can someone tell me if that is correct or not, because I have never used rm before.
 
Old 11-19-2003, 07:09 PM   #2
Sometimes
Member
 
Registered: Oct 2003
Location: Richmond, VA
Distribution: Depends on the week...
Posts: 64

Rep: Reputation: 15
Us the command:

sudo


Stands for "Super User Do". It is used most often to execute a single command as root.

man sudo

Should be able to help you with everything you need. It takes a little bit of configuration, but I have a feeling you can handle it.
 
Old 11-19-2003, 09:46 PM   #3
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Original Poster
Rep: Reputation: 30
Heard of that before but I figured it was just another form of su.....and I learn that it is one of the coolest programs I have used....it was really nice to think of the possibilities for it in a office.
 
Old 11-19-2003, 09:48 PM   #4
Sometimes
Member
 
Registered: Oct 2003
Location: Richmond, VA
Distribution: Depends on the week...
Posts: 64

Rep: Reputation: 15
Absolutely, no doubt. I used to use it to set literally dozens of levels of permission for dozens of different users on certain servers at work...

I never su or login as root. I always "sudo" everything.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how enter the command enviroment in GUI ztdep Linux - Software 1 07-20-2005 06:58 AM
X-Chat script to enter a command every minute eam Programming 2 08-30-2004 03:25 AM
Command to pass the address of sys_call_table to a module appas Programming 3 07-23-2004 12:30 PM
Pass password with ssh command BruceC Linux - Newbie 2 05-12-2004 08:55 AM
How do I pass a C variable to a Bash command ? Linh Programming 6 07-07-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration