LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-09-2006, 10:13 AM   #1
jcosenzo
LQ Newbie
 
Registered: Sep 2004
Location: Ottawa Canada
Distribution: Red Hat, 9, fedora Core2, 3, Centos
Posts: 5

Rep: Reputation: 0
How do i create a KDE desktop icon which runs a program using a different group-id?


How do i create a KDE desktop icon which runs a program using a different group-id?

My default NIS group is "user" and I want a Konsole to launch from a KDE desktop icon with a NIS group of "mech"

Here's what I've done:

KDE Desktop > RMB > Create New > Link to Application
[General] "Konsole-mech-group"
[Execute] > Command: konsole -geometry 1200x400+0-82 --workdir /project/users/jim
[OK]


KDE Desktop > RMB over the icon titled: "Konsole-mech-group" > Properties
[Permissions]
Access Permissions:
rwx for User, Group
r-x for Others
Ownership:
[User] jim
[Ownership] mech
Is there a way to do this? Or am I barking up the wrong tree?

I now believe the [Permission} tab is for setting the access rights to the icon file itself in ~/Desktop/Konsole-mech-group and does not give you the abilty to run the program with a different group-id.

Is there anyone out there who has done this?
 
Old 06-09-2006, 01:41 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,764

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
As user, add the application (or a link to it) to your desktop. Default permissions will be jim/users.

Open a console window, and find the desktop link: something like /home/jim/Desktop/<application>. Use the command chgrp to change the group (you may have to su to root). Chgrp mech /home/jim/Desktop/<application>.

Check the properties: ls -l /home/jim/Desktop/<application>, and you should see:
User Jim
Group mech
 
Old 06-09-2006, 02:43 PM   #3
jcosenzo
LQ Newbie
 
Registered: Sep 2004
Location: Ottawa Canada
Distribution: Red Hat, 9, fedora Core2, 3, Centos
Posts: 5

Original Poster
Rep: Reputation: 0
bigrigdriver: Thanks for your quick reply.
But I think you missed my point... or maybe I wasn't clear enough.

The question is: "How do I create a KDE desktop icon which will run a program as user "jim" and as group "mech" when my default group-id is 'user' ?".

What you are describing is simply how to change the grpid on the ~/Desktop/<appliaction> file to "mech"
 
Old 06-10-2006, 09:44 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
In the shortcut's properties > application > advanced options menu there's a box for setting it to run as a different user. I don't know about changing the group though. Perhaps a shell script?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create a desktop icon in Mandrake 10.1 drevil666 Mandriva 5 06-29-2005 03:13 AM
how do I create an icon on KDE desktop drevil666 Linux - Newbie 3 06-28-2005 08:23 AM
Cannot Remove Volume Group Icon from Desktop rsmith Linux - Newbie 0 01-16-2005 07:21 PM
How to create start tomcat icon on kde desktop? gepesz Linux - Software 2 06-19-2004 08:44 AM
how to create an icon on desktop with ICEWM jj71 Linux - Newbie 2 07-30-2003 07:00 PM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration