First of all, thanks to the list, especially Robert and Philip. All I needed was to be told the command, and I went in and read the man for it, and worked it out. Where I stuffed up, was I wanted to make directories available under my login, not just root, so i set permissions for my log in to be able to access/read/write for all directories under root in other user groups as well. Stupid, cause when I re-booted the next time, the system wouldn't boot, due to access to /etc/x11/gdm/gdmconf being unrestricted. I just need to fix this up, and I went through and re-set all permissions back to normal, and have only loosened up the directories I need to access and write to regularily from my log in, and left the rest alone.
Never mind, I will learn slowly. thanks Greg -----Original Message----- From: [EMAIL PROTECTED] [mailto:redhat-list-admin@;redhat.com]On Behalf Of Robert Storey Sent: Wednesday, November 06, 2002 7:44 PM To: [EMAIL PROTECTED] Subject: Re: setting permissions On Tue, 2002-11-05 at 18:38, Greg wrote: > Hi, > how do I set permissions for directories while in text mode. What is the > command, and if someone could write an example for me please. > thanks Greg Dear Greg, Of course you should type "man chmod" before proceeding much further. That said, a few comments: I prefer to use chmod in numeric mode. As the man page says: "A numeric mode is from one to four octal digits (0‐7), derived by adding up the bits with values 4, 2, and 1" So to set a file readable(4), writeable(2) and executable (1), your parameters are 4+2+1 (which adds up to 7) so, typing: chmod 700 * will set permisions for every file in the current directory to: -rwx------ It works on directories too, not just files: drwx------ Typing: chmod 765 filename will do this: -rwxrw-r-x If you want to change all subdirectories to the same permission level, use the -r (recursive) option: chmod -r 700 * In case you have already discovered it, all subdirectories must be +x or you will not be able to CD into them. Hope this helps, Robert, in Taiwan -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list