Solved

unable to copy a file to created folder

Posted on 2013-01-30
6
151 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

816 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