?
Solved

unable to copy a file to created folder

Posted on 2013-01-30
6
Medium Priority
?
170 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
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

 
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

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.

Question has a verified solution.

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

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
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…
Suggested Courses

770 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