LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-23-2007, 11:43 PM   #1
arew264
Member
 
Registered: Jul 2005
Distribution: Arch Linux / Debian Etch (soon) / have tried many others
Posts: 94

Rep: Reputation: 15
Group Folder - Setup?


I haven't tried anything this fun with permissions yet, so I'm kinda confused.
I set out to create a music folder that would be owned by a music group. I created the music group, created a folder, set that folder as owned by the music group, and chmodded it to 775. I then added my user to the music group.
I then tried to create a file in that folder, and permission was denied. What's going on here? Do I have to re-login because I added myself to a group or something?
 
Old 11-24-2007, 08:36 AM   #2
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Quote:
Do I have to re-login because I added myself to a group or something?
Yes, you generally have to logout and back in again when you make a change like that, because the relevant file is only read upon login.
 
Old 11-24-2007, 10:23 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
New login shells will have the new group setting. If you want to do a quick test, you can open a terminal, and switch to your own user using "su - yourusername". It seems a little odd to switch to the user name which you are already using, but the - option makes the new shell a login shell, and it should have the new group setting inside that shell.

This is a time saver if you use a graphical login, and you want to try out a new group setting without completely logging out and back in again.

Last edited by matthewg42; 11-24-2007 at 10:32 AM. Reason: I am muddled :)
 
Old 11-24-2007, 11:52 AM   #4
arew264
Member
 
Registered: Jul 2005
Distribution: Arch Linux / Debian Etch (soon) / have tried many others
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks, that got it working. I'll keep that shortcut in mind.
 
  


Reply

Tags
group, owner, su


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
missing folder permission, owner and group tritonw Linux - General 4 10-28-2007 11:21 PM
group permissions in a folder rubella Linux - Newbie 5 01-18-2006 04:23 AM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
samba : access denied for some user in same NT group on a folder mtrento Linux - Networking 0 06-27-2005 10:01 AM
group permissions based on folder perms grcunningham Linux - Networking 1 05-27-2005 04:50 AM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration