On Tue, 17 Jun 2003, Ben Anderson wrote: > I think this is a simple question. I've surfed the web quite a while and > can't find anything. I'm been using Linux and Gentoo for a while, but am > still relatively clueless at times. Can someone please explain some things > to me about the bash output below: > > --> whoami > andersonbd1 > --> groups > root bin daemon sys adm tty disk lp mem kmem wheel floppy mail news uucp man > cron console audio cdrom dialout ftp sshd tape video squid gdm xfs games > named mysql postgres > --> groups andersonbd1 > root bin daemon sys adm tty disk lp mem kmem wheel floppy mail news uucp man > cron console audio cdrom dialout ftp sshd tape video squid gdm xfs games > named mysql postgres cdrw apache nut usb vpopmail users nofiles qmail > postfix postdrop smmsp portage utmp nogroup nobody proftpd webmaster webdev > --> ls -ld htdocs > drw-rw-r-- 11 andersonbd1 webdev 4096 Jun 14 13:51 htdocs > --> cd htdocs > bash: cd: htdocs: Permission denied > > 1. why does it display all the groups in the second command, but not the > first? All I did to add myself to a group was edit the /etc/group file - is > this correct?
In order for you to be part of the new groups, you must log out and log in again. 'groups' by itself will only show what you are currently a member of, while 'groups $user' will show all the groups a given user will be part of when they log in. > 2. why can't I access this directory even though I am the owner? > 3. why can't I access this directory even though I am in the group? Directories must be executable. The proper permissions would be: drwxrwxr-x 11 andersonbd1 webdev 4096 Jun 14 13:51 htdocs > 4. Does anyone know of any good linux mailing group archives or forums, so I > don't have to ask what are probaly simple questions here? Apart from the gentoo forums, take a peek at http://www.linux.org. They have a "Linux 101" section. Also browse through http://www.tldp.org (The Linux Documentation Project). If you want to know how to do something, that's always a good place to start. -- Marshal Newrock, Simon's Rock College of Bard Caution: product may be hot after heating -- [EMAIL PROTECTED] mailing list
