LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2006, 08:25 AM   #1
mayank_a
LQ Newbie
 
Registered: Oct 2005
Location: India
Distribution: RedHat 7.3, Fedora 4
Posts: 19

Rep: Reputation: 0
File association in KDE and managing Groups


Dear Members,
I am using distro RedHat9.0 with kernel 2.4 and using KDE Environment 3.0.

I have three questions:

1. How to associate a file.extension with a application and pass the file name to the application, whenever the icon of that file.extension is clicked??
2.How to give a Group of users certain acess rights to a group of directories owned by other groups??

3. How to make Panel Buttons/Icons same for any login user I create?

Kindly, give me directons to do the same.
Regards
Mayank
Student, MS
 
Old 02-19-2006, 04:59 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Your questions are pretty easy to answer.

Quote:
Originally Posted by mayank_a
1. How to associate a file.extension with a application and pass the file name to the application, whenever the icon of that file.extension is clicked??
The easiest way to do this is to open the KDE file manager. Select one of the files of the type that you want to configure. Right click your mouse. A menu will appear. Select "Open with...". Another menu will appear. You will see a list of the applications that are already configured to open this type of file. At the bottom of this list is the option for using another application. Select that. A new window will appear that will allow you to edit all of the existing applications associated with that file type and to add another application for that file type. You will also be able to select the preference order so that you can put your new application in the list, move it to the top of the list, and leave the other applications in the list. KDE will use the application at the top of the list when you click on a file of this type from the file manager.

The hard way to do this would be to start the kcontrol applications, go to the file association applet, and try to edit these records. I don't recommend this approach.

Quote:
Originally Posted by mayank_a
2.How to give a Group of users certain acess rights to a group of directories owned by other groups??
You can use secondary user groups for this. You can create a user group just for accessing this shared directory. Let's call this new user group sharedir.

groupadd sharedir

Then you make this group the owner of the shared directory. If the shared directory was named /home/shared_dir you would enter the following commands.

chgrp sharedir /home/shared_dir
chmod g+rwx /home/shared_dir

Now you add the group sharedir to the list of secondary user groups of the users that should be able to access this directory. Note that you will have to see what these user accounts already have for their secondary accounts because the usermod command requires you to copy them when you add sharedir to the list. For example, if you have a user account named tom. This user account has the primary user group as users. The tom account also has video and audio as secondary user groups. You will have to write the complete list of secondary user groups when you use the usermod command on the tom accounts. Example:

groups tom
tom : users video audio

usermod -G "video, audio, sharedir" tom

groups tom
tom : users video audio sharedir

The tom account will have to log out and log in before he can use the sharedir group added to the account.

Quote:
Originally Posted by mayank_a
3. How to make Panel Buttons/Icons same for any login user I create?
Naturally the user accounts will all start the same. The window managers all have a default configuration. If you want to customise an environment and have that automatically created for each new user then you could do this:

create a template user account
configure it the way that you want
copy all of the files and directories back to /etc/skel

Or, you could read about how to configure the default environment for the window manager that you are using (KDE) at the web site for documentation of that software.

Last edited by stress_junkie; 02-19-2006 at 05:07 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Konquerer File association bobinglis Linux - Software 2 01-17-2005 02:17 AM
KDE file association won't stick LocoMojo Linux - Newbie 7 12-28-2004 09:32 AM
KDE desktop file association problem neranjana Linux - General 2 10-23-2004 10:01 AM
KDE File Association Issues Eultza Linux - Newbie 7 12-16-2003 03:51 PM
KDE Realplayer permanent file association? jcabral3 Linux - Newbie 1 05-29-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration