Results 1 to 5 of 5
Hello,
Basically - how do I get linux to 're-read' my permissions when i've added myself to a group without having to log off and on again?
I wanted access ...
- 12-01-2006 #1Linux Newbie
- Join Date
- Nov 2006
- Posts
- 123
very simple file permissions question
Hello,
Basically - how do I get linux to 're-read' my permissions when i've added myself to a group without having to log off and on again?
I wanted access to webfiles so I did
then, user 'ben' should be able to write to htdocs, but can't until I log off and log on again.Code:groupadd webmodifiers chgrp -R webmodifiers /srv/www/htdocs usermod -Awebmodifiers ben
Any ideas?
Ta
- 12-01-2006 #2Just Joined!
- Join Date
- Dec 2006
- Posts
- 3
chmod command
chmod 777 the dir or file
ex: chmod 777 /srv/www/htdocs
this method is called the absolute method it changes all the permissions at once. 777 gives u read/write/execute permissions to the file or dir.
- 12-01-2006 #3This sounds like a bad bad bad idea. You don't want to have rwx permissions for everyone on a web server -- that's just asking for trouble.
Originally Posted by Nvzabl
The original poster was asking how to "refresh" the permissions without restarting his login session, not how to give the world rwx permissions to his server!Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 12-02-2006 #4
Try running the 'newgrp' command with no parameters. If that doesn't work, you can try 'newgrp -'.
Otherwise, the best solution may be to just logout and back in.DISTRO=Arch
Registered Linux User #388732
- 12-02-2006 #5Just Joined!
- Join Date
- Jun 2006
- Location
- (.)
- Posts
- 69
Hi,
Check the below mentioned URL:
http://forums.linuxwebadmin.info/ind...opic,34.0.html
if you are already logged in and you made some changes in environment variable in /etc/profile, $HOME/.bash_profile, /etc/bashrc, $HOME/.bashrc etc
and you don't want to relogin for change effect, than run these all script with command "source"
#source /etc/profile
It will refresh your currunt environment..........


Reply With Quote