Group permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Group permissions
# 1  
Old 12-02-2009
Group permissions

Hi,

I've created a user named fwadmin, group named fwadmin and made the user belong to that group. I created the user and group using the 'User Manager' in Centos.

The user belongs to /etc/fw.Does this also mean that the group fwadmin belongs to /etc/fw. That is what I want.

But when I check the /etc/fw directory I don't see any user/group named fwadmin there. Why is this and how do I solve it?

I want to also make /etc/fw group writable. To do so I use this command in the console :
Quote:
[root@localhost fw]#chmod g+w fwadmin /etc/fw
But I am instead returned with an error :

chmod: cannot access `fwadmin': No such file or directory

So what has happened to the user and group that I've created?Why are they not visible?

Pls help. Tqs.
# 2  
Old 12-02-2009
chmod is for setting permission on files and directories:

Code:
chmod g+w /etc/fw

If you want to change the user and / or group ownership of a file use chown.

Code:
chown fwadmin:fwadmin /etc/fw

If you're not sure that the user was created properly, then id it, or check the /etc/passwd and /etc/group files.

A user doesn't belong to a directory or a file. It's the other way around.

What are you looking for in /etc/fw?

Last edited by Scott; 12-02-2009 at 06:25 AM..
# 3  
Old 12-02-2009
Actually I have to make /etc/fw belong to group fwadmin. So I thought that when I created the fwadmin user and group, I should be able to see it in the /etc/fw directory.

Is there a way to check whether or not the /etc/fw directory belongs to the fwadmin group?
# 4  
Old 12-02-2009
Code:
ls -ld /etc/fw

# 5  
Old 12-03-2009
So when I type ls -ld /etc/fw at the prompt, the output that I get is :

drwxrwxrwx 15 fwadmin fwadmin 4096 Dec 3 15:01 /etc/fw

This already means that /etc/fw is group writable.
So now the next step that I did was type this into the prompt :

Quote:
ssh fwadmin@192.168.0.90 sudo -S /etc/fw/New.fw
This is for the firewall builder policy installer to login to the firewall as fwadmin and then copy the firewall script to /etc/fw/New.fw and then use the command above to execute it.

The output that I get is as follows :

Quote:
fwadmin@192.168.0.90's password:
id: cannot find name for group ID 502
>>> sudoers file: syntax error, line 53 <<<
sudo: parse error in /etc/sudoers near line 53
What it shows is that when I type the password for the firewall machine, the error returned is that it cannot find name for group id 502. When I change the permissions for both /etc/passwd and /etc/group to 644, the error still appears.

I do not have anymore ideas of how to correct the error.

Pls help.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Group and user permissions on mediawiki

I am working on setup a wiki which should have users and group having read or write permission. Before that we were using simple write to all methodology. Now the challenge is this that i have created a 3 users and all of the 3 are able to write to wiki and update the page. Now what i what to... (0 Replies)
Discussion started by: sunnysthakur
0 Replies

2. UNIX for Advanced & Expert Users

Group permissions question

I have a user who has had an id change. His old id was xl00 his new id b000999. Both id's are in group bauser. The user now cannot access his old files even though he is in the same group and permissions seem to be ok. See below, first 2 files he can't see, second two are no problem. ... (2 Replies)
Discussion started by: dw82199
2 Replies

3. UNIX for Dummies Questions & Answers

Root group permissions

Hi everybody, which are the root group permissions and how can I give to a user these rights? Thanks in advance. (2 Replies)
Discussion started by: bmayao
2 Replies

4. UNIX for Advanced & Expert Users

Automate setting of group permissions

What would be a practical way of making sure files I upload to/edit in a particular directory on a server always have the correct group permissions? I'm forgetful, so I try to automate things like chgrp'ing the files when I'm done. I could write a script to be run by cron. Is that the only way,... (2 Replies)
Discussion started by: mregine
2 Replies

5. Solaris

Group Permissions - How to tell the difference

I am a member of a few different user groups. I would like to see what the difference is.... Can anyone tell me how to look at permissions side by side ? We are using : SunOS xxxxxx 5.10 Generic_127111-09 sun4u sparc SUNW,Sun-Fire-V440 Thanks ! (10 Replies)
Discussion started by: popeye
10 Replies

6. Shell Programming and Scripting

checking Permissions of file for OTHERS and GROUP

Hi, Is their a way to check the read and execute permission on a file on OTHERS and GROUP rwxr--r-x I am trying something like: if ( || ) then .... fi The code above only checks the permissions of the owner of the file but not for the GROUP and OTHERS. I will really... (5 Replies)
Discussion started by: rkumar28
5 Replies

7. AIX

bin group strange permissions

I was doing a little playing around with permissions on a 5.3 box in the office and wanted to make it so that it does not take root permission to delete a users home directory once they are deactivated or deleted in smit. the default permissions are 755 with bin as both user and group I noticed... (2 Replies)
Discussion started by: dgaixsysadm
2 Replies

8. UNIX for Dummies Questions & Answers

How to copy owner permissions to group

Hi, I need a command or a script to change the group permissions to be the same as the owner permissions for all my files and directories (recursive) any idea ? (4 Replies)
Discussion started by: ynixon
4 Replies

9. Filesystems, Disks and Memory

group permissions/webserver

Hi, there is one strange situation with directory permissions that I run into every now and then, and now I face it a gain with a webserver. Situation (example): drwxrwsr-x 14 user www-data 4096 Jul 28 11:06 . drwxr-xr-x 2 www-data www-data 4096 Jul 28 11:06 subdir -rwxr-xr-x 1... (3 Replies)
Discussion started by: doozer
3 Replies

10. UNIX for Dummies Questions & Answers

root group permissions

Hello, Another newbie here and here is my dilemma. I created an account for me on Solaris 8 and I added myself to the root group. But when I login using that account I am unable to do superuser tasks.. (add users, admintool, etc). What am I missing? Thanks in advance.. Andre (5 Replies)
Discussion started by: jacobsa
5 Replies
Login or Register to Ask a Question