LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2013, 02:40 PM   #1
emerson1979
LQ Newbie
 
Registered: Jul 2013
Posts: 9

Rep: Reputation: Disabled
Having difficulty changing group permissions


Hello Everyone
I typed the following in terminal

dan@dan-MS-7369:~/Documents$ sudo chgrp wheel run.txt
chgrp: invalid group: `wheel'

I wished to change the group to wheel but was denied. Does anyone know the reason for this.

Thank
 
Old 07-27-2013, 02:50 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
chgrp: invalid group: `wheel'
Did you check the /etc/passwd file to see if there is a 'wheel' group?
 
Old 07-27-2013, 02:56 PM   #3
emerson1979
LQ Newbie
 
Registered: Jul 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
no I didn't. don't assume it's there. IF that's a requirement I 'm going to have to edit the file, something I have no experience at.
 
Old 07-27-2013, 05:09 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
BTW to get a list of groups, look in /etc/group not /etc/passwd. You don't need to edit the password and group files by hand, groupadd and usermod will happily do the job for you.
 
Old 07-27-2013, 05:50 PM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Having difficulty changing group permissions

Check out the man pages on the commands mentioned. They have a number of options and should get the job done for you.
 
Old 07-27-2013, 06:31 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Try
Code:
# groups
 
  


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
Group permissions: user can't access 770 directory even though a member of group jm34003 Linux - Security 13 05-16-2012 02:03 PM
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
Group administrator (or changing permissions and ownerships) rikis7 Programming 2 08-15-2007 12:22 AM
difficulty changing permissions thiqued Linux - Security 2 08-18-2004 11:56 AM
Group Permissions changing back on their own jnezezon Linux - Networking 8 01-09-2004 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 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