Solved

unable to copy a file to created folder

Posted on 2013-01-30
6
145 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
  • 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 275 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now