LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2008, 03:16 AM   #1
NEVICA
LQ Newbie
 
Registered: Feb 2008
Posts: 23

Rep: Reputation: 15
File permissions and transfer


Dear All,

I am trying to copy some files on my desktop to the following directory:

/var/lib/boinc-client/projects/.

I found that I did not have permission to copy to the projects file.

I went through the following commands.

I opened up a terminal and logged in as superuser

su

I then pointed to the projects file and then modified the ownerships with chmod

Unfortunately this did not work.

Here are the ownerships if the file projects.

dr-xr-x--x 3 boinc boinc 4096 2008-04-18 07:00 projects

This return obviously says there are three files within projects but all I find is one named setiathome.berkeley.edu

Why the mismatch?


Could anybody help me out.

Once I have changed the ownerships in order that I can copy files to it will I be able to drag and drop or will I have to use the cp command?

Nevica

Last edited by NEVICA; 05-03-2008 at 03:29 AM. Reason: Add information
 
Old 05-03-2008, 03:57 AM   #2
raggerund
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
I think chown is better in this case than chmod. chmod can change the rights for other users than the owner, while chown changes the owner of the file or in this case the folder.
I've found that 3 in your folder should point out the number of hardlinks within it.
I am a newbie, but I think this is the number of folders, including the "." and ".." folder.
You may have to use the recursive option "-R"
Hope this helps
/Ragge
 
Old 05-03-2008, 04:09 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by NEVICA View Post
Dear All,

I am trying to copy some files on my desktop to the following directory:

/var/lib/boinc-client/projects/.

I found that I did not have permission to copy to the projects file.

I went through the following commands.

I opened up a terminal and logged in as superuser

su

I then pointed to the projects file and then modified the ownerships with chmod

Unfortunately this did not work.

Here are the ownerships if the file projects.

dr-xr-x--x 3 boinc boinc 4096 2008-04-18 07:00 projects

This return obviously says there are three files within projects but all I find is one named setiathome.berkeley.edu

Why the mismatch?


Could anybody help me out.

Once I have changed the ownerships in order that I can copy files to it will I be able to drag and drop or will I have to use the cp command?

Nevica
You're not mentioning WHAT the chmod command was, so
there's no way to check whether it did what you expected
it to do or not.

As for the "mismatch" - you didn't take into account . and ..


Cheers,
Tink
 
  


Reply

Tags
chmod



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 05:30 PM
Samba transfer alters permissions on executables swerdna Linux - Networking 0 10-01-2007 02:50 AM
transfer dvds from ogg file to vod file kingfish217217 Linux - Software 3 02-19-2007 06:19 PM
How can I write a shell script to transfer files and keep permissions? LancerNZ Linux - Networking 1 02-24-2005 03:49 AM
How can I write a shell script to transfer files and keep permissions? LancerNZ Linux - Wireless Networking 0 02-24-2005 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration