LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-12-2010, 03:20 AM   #1
int80
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Rep: Reputation: 0
"chgrp ksh" is working on ubuntu


I just installed ksh and I'm trying to assign it to a particular group, but I can't seem to be able to do it.

If I do:
chgrp privd /usr/bin/ksh

It doesn't change anything.

http://img571.imageshack.us/img571/1297/captureejp.png

Does anyone have any ideas?

Last edited by int80; 08-12-2010 at 03:23 AM.
 
Old 08-12-2010, 04:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You need to change the "real" program (/etc/alternatives/usr.bin.ksh in your case) and not the link pointing to it.

Hope this helps.
 
Old 08-12-2010, 05:03 AM   #3
int80
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I've tried:

chgrp privd /etc/alternatives/usr.bin.ksh
chgrp privd /etc/alternatives/ksh
chgrp privd /usr/bin/ksh

Nothing seems to work.
 
Old 08-12-2010, 05:18 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Just tried it, and it should work.

Can you post the output of this: ls -l /etc/alternatives/usr.bin.ksh /etc/alternatives/ksh /usr/bin/ksh

You don't mention any error messages, are there any?
 
Old 08-12-2010, 05:28 AM   #5
int80
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
There are no error messages, which is odd. It seems to do it.


http://img827.imageshack.us/img827/9803/capturegi.png

I can't post the text as it's in a VM without VM Tools.

Thanks

int80
 
Old 08-12-2010, 05:59 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

As I stated in post #2, you need to edit the real program, not the link.

A link can be recognized by the l (lower L, not 1) in the first column: lrwxrwxrwx. A "normal" entry would look like something this: -rwxr-xr-x

Looking at the output you posted, I do believe the real program is /bin/ksh93 (you now know how to check it, if it is also a link then follow the link until you find the real program).

Hope this helps.
 
Old 08-12-2010, 07:37 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
+1 druuna

when you change "group" of link file it will change group of real file.

in your case real program is /bin/ksh93

Code:
ls -l /bin/ksh93
 
  


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
intrepid, PS3, update sources list from "ubuntu" to "ports-ubuntu" evdv Linux - Newbie 7 08-18-2009 10:52 AM
6.6 Creating Essential Files ...." .chgrp: invalid group: `utmp' " jpeters Linux From Scratch 1 04-03-2009 12:34 AM
"cheese" capturing working a lot better under Ubuntu than Fedora ed_homeLinux Linux - Software 2 10-14-2008 07:32 PM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Netgear MA111 working for Ubuntu "Warty" release? cfw Linux - Wireless Networking 8 02-21-2006 08:08 PM

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

All times are GMT -5. The time now is 01:37 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
Open Source Consulting | Domain Registration