LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
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,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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: 103Reputation: 103
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 Addict
 
Registered: Jan 2011
Posts: 8,486
Blog Entries: 11

Rep: Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386
Try
Code:
# groups
 
  


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
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 02:19 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