• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Help with file permissions

I'm having trouble with file permissions.  I created a new user and I'm able to use ftp with that new user, but when the new user tries to save a file it says 550 Permission Denied.  The directory I tried to write to has ownership sample:sample, so I tried:

pw usermod newuser -G sample

But I'm still getting the Permission Denied error.

Any help would be greatly appreciated, and be gentle ... I'm not very good at Linux.
0
hrolsons
Asked:
hrolsons
  • 2
  • 2
1 Solution
 
woolmilkporcCommented:
Ok, ownership is now OK, but which are the permissions of "sample"?
It must be group-writeable for your method to work!

Issue "chmod g+w sample" and retry.

wmp
0
 
hrolsonsAuthor Commented:
xxx-xxx-xxx-xxx# chmod g+w sample
chmod: sample: No such file or directory
xxx-xxx-xxx-xxx#
0
 
woolmilkporcCommented:
Sorry, I forgot the "... not very good ..." thing you mentioned in your Q.

Of course you either need to use the full path to the directory in question, or to "cd" into the directory just above it.

And you should use the real name of the directory. I used sample because I don't know the name of that directory, obviously.

So if your directory is e.g.

/home/users/sample

either issue

cd /home/users
chmod g+w sample

or issue

chmod g+w /home/users/sample

wmp
0
 
hrolsonsAuthor Commented:
You Rock!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now