LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-19-2006, 08:40 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
User is not allowed to write in a directory


Hi!

I have the following directory:
Quote:
drwxrwxr-x 6 apache rpad 4096 Nov 14 15:18 Rpad
when I try to create a file in this directory, I get the message
Quote:
"Rpad/test_file" E212: Can't open file for writing
My user belongs to the group rpad.
Quote:
groups=501(group1),502(staff),505(group3),506(mailman),507(group4),513(rpad)
I created this rpad group in order to allow some users to write files in this folder.
What did I do wrong?

Last edited by xpucto; 04-19-2006 at 08:42 AM.
 
Old 04-19-2006, 08:54 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Are you sure that this process is running under the user account you think it is?

From what you have described though, if the user in question is a member of the rpad group then the rights you have set should allow him/her to write to that directory.
 
Old 04-19-2006, 08:55 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Ok, I guess I found the answer. I have to use
Quote:
newgrp mygroup
. Then it works. I just thought that slececting the "right" group would happen automatically.
 
Old 04-19-2006, 09:06 AM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
In order to make things easier, I just changed my user's default group using
Quote:
usermod -g rpad myuser
 
  


Reply

Tags
group, permissions, user


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh problem: one user is allowed the other is refused! levent.ozkan Linux - Networking 5 10-05-2005 01:34 PM
Sharing a directory with a regular user (with write permission) Ironica Linux - Newbie 6 05-31-2004 11:27 AM
Permitting a user to write to another users home directory rddreamz Linux - Newbie 4 11-19-2003 01:01 AM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 04:19 PM
set time limit on allowed user in iptables? luap Linux - Networking 5 03-04-2003 10:55 PM


All times are GMT -5. The time now is 11:27 PM.

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