Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-01-2008, 05:39 AM   #1
LQ Newbie
Registered: Jun 2006
Distribution: Debian etch
Posts: 4

Rep: Reputation: 0
Padlocked files

Greetings all,

I am back to using debian etch after a long spell on win2000.

I was having some difficulty getting a win2000 hdd to mount on boot. To check on things I switched to root and browsed the mount folder where I located the hdb1 and hdb5 drives. Whilst there I decided to copy roughly 50gb files over to my /home folder from the hdb5 ntfs drive. Later I rebooted and browsed my /home as user and noticed all the files I transferred over have little padlocks on them. Is there a quick fix for this to make them usable as user?

Old 01-01-2008, 05:55 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Change ownership of the files. To change ownership to the normal user, do
#chown -R someuser:somegroup /path/to/dir/with/files
Old 01-01-2008, 05:55 AM   #3
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
You need to change the permissions/ownership of them. Since you copied the files over as root, they are almost certainly owned by root, which is why your ordinary user can't read them.

The first thing to do is check the file permissions and ownership; this is most easily achieved through a terminal. Once in a terminal, navigate to the directory where the files are stored using the cd command. Once there, type ls -l and check the 1st and 3rd columns. The first shows the permissions for owner, group and others, the third column is who owns the file.

To change the permissions, you need to use the chmod command. To change the ownership, use the chown command. Both need to be run as root if root currently owns the files.

edit: beaten to the punch!
Old 01-01-2008, 06:55 AM   #4
LQ Newbie
Registered: Jun 2006
Distribution: Debian etch
Posts: 4

Original Poster
Rep: Reputation: 0
Many thanks for your quick replies!! I shall follow you suggestions when I boot the debian beastie up in the morning. I dwell on the east coast of Australia and it is now 11pmish and my brain bits that are still functioning are about to call it a day. I'll report back tomorrow. cheers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem in mounting cdrom(audio files running but not reading data files) amit_usual Linux - Newbie 7 12-29-2007 05:52 AM
Doom 3: Using native installer and can't locate saved game files or config files JBailey742 Linux - Games 11 08-14-2006 06:09 PM
converting a doc/ppt Windows files in html files under linux env agrosu Programming 7 02-23-2006 03:07 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

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