Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

unable to copy a file to created folder

Posted on 2013-01-30
6
Medium Priority
?
173 Views
Last Modified: 2013-02-06
hi guys

I created a new directory using 'mkdir customerautomation' in myunix box
but when i trying to copy a file into that diretory (using filezilla)  i am getting
permission denied, any idea how i can change that?

$ ls -ltr
drwxr-xr-x  2 customerproj customerproj  96 Jan 30 18:11 customerautomation


thanks
0
Comment
Question by:royjayd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:royjayd
ID: 38838218
hi..any inputs will be greatly appreciated.
How do i make sure i give all the permissions to
customerautomation directory so that i can copy files in it?

thanks in advance.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1100 total points
ID: 38839151
The userid specified in Filezilla must be "customerproj". To allow writing to that directory by the members of group "customerproj" add group-write permission with "chmod g+w customerautomation".

You could make the directory world-writeable (this is strongly discouraged for security reasons!) with "chmod a+w customerautomation".
0
 

Author Comment

by:royjayd
ID: 38839619
hi

tried chmod g+w customerautomation",  it doesnt work
tried  chmod a+w customerautomation , it works

>>>this is strongly discouraged for security reasons

can you tell me what security problems may arise? and any reason why
g+w customerautomation doesnt work

thanks
0
Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38839641
g+w doesn't work because the user specified in Filezilla is not a member of the "customerproj" group.

A world-writeable directory is considered a security risk because everybody who has access to the server can add or delete files there.
0
 

Author Comment

by:royjayd
ID: 38839749
ok thanks
I have read what you said earlier carefully.

<<<
The userid specified in Filezilla must be "customerproj". To allow writing to that directory by the members of group "customerproj" add group-write permission with "chmod g+w customerautomation". >>>

Actually the user specified in filezilla is my company userId.
How do i check and possibly add/enable my userId so that i can write to customerproj

thanks
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38839793
id myuserID

will show you the user's primary group ("gid=...") and the other groups ("groups=...") where the user is a member of (if any).

Which command to use for adding myuserID to a certain group is OS dependent.

Which is your OS?

Under SuSE Linux you would use:

groupmod -A myuserID customerproj

Under other Linuxes it should be

usermod -a -G customerproj myuserID

AIX:

chgrpmem -m + myuserID customerproj
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This Windows batch file is useful for organizing image files from a digital camera or other source, but can have many other uses.  It simply renames the file(s) to match their create date.  For example, if you took a picture today at 1:40pm and the …
Utilizing an array to gracefully append to a list of EmailAddresses
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question