PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 25, 2012, 08:25:36 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Permissions Challenge  (Read 203 times)
kah5683
Full Member
***
Offline Offline

Posts: 239


« on: January 29, 2012, 11:02:35 AM »

Initially trying to delete everything off a 2nd hard drive so I would have enough room for a backup of /home with unison.  There was one file, an mp3 file I ripped from a CD that I could not delete.  Wouldn't let me change permissions and/or said it didn't exist.  I tried also as root.  No luck.  I finally gave up and just deleted partition and reformatted.

Now I am filling up the 2nd hard drive.  I initially just copied everthing over, then ran unison.  I then realized there were props issues, so I did chown and chmod per Texstar:

Quote
#own all files in your home folder
[root@localhost ~]# chown -R texstar:texstar /home/texstar

# set the permission on your home folder that prevents others from having read or write access.
[root@localhost ~]# chmod 0700 /home/texstar

This didn't change them all, and didn't give me feedback on errors.

I went in dolphin under properties and permissions, and changed to what I wanted, then marked apply to all subfolders, and continue to get error messages and the process stops.  For example:

Quote
Could not change permissions for /home/kevin/.dvdcss/(���r���-9a80c539530ca592-0000000000.

When I try to delete file, says it doesn't exist.  Closed and reopened dolphin, still there, same problem.

So, 4 questions:

1  How do I delete these files
2  How do I make sure all permissions changed with all files
3  should I change permissions for groups and others to forbidden or read only?
4  should I check off changes and deletions only by owner?

Thanks!

Logged

P8Z68-V Pro/Gen3 Motherboard - onboard soundcard
Intel i5-2500K Processor 3.3 GHz 4 core
Nvidia GeForce GTX550Ti Graphics card
60gb Patriot SSD - 2tb Seagate HDD - 8gb RAM
PCLinuxOS-KDE-2012-02
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 5141


I'm going South


« Reply #1 on: January 29, 2012, 12:29:42 PM »

Initially trying to delete everything off a 2nd hard drive so I would have enough room for a backup of /home with unison.  There was one file, an mp3 file I ripped from a CD that I could not delete.  Wouldn't let me change permissions and/or said it didn't exist.  I tried also as root.  No luck.  I finally gave up and just deleted partition and reformatted.

Now I am filling up the 2nd hard drive.  I initially just copied everthing over, then ran unison.  I then realized there were props issues, so I did chown and chmod per Texstar:

Quote
#own all files in your home folder
[root@localhost ~]# chown -R texstar:texstar /home/texstar

# set the permission on your home folder that prevents others from having read or write access.
[root@localhost ~]# chmod 0700 /home/texstar

This didn't change them all, and didn't give me feedback on errors.

I went in dolphin under properties and permissions, and changed to what I wanted, then marked apply to all subfolders, and continue to get error messages and the process stops.  For example:

Quote
Could not change permissions for /home/kevin/.dvdcss/(���r���-9a80c539530ca592-0000000000.

When I try to delete file, says it doesn't exist.  Closed and reopened dolphin, still there, same problem.

So, 4 questions:

1  How do I delete these files

If the problem is characters that your system can't read, run the rm command and replace those characters with wildcards. If you have a file "test���.txt", try
Code:
rm test???.txt

But if you have a file called for instance "testing.txt" in the same folder and if you don't want to delete that one too, then you have to move it or back it up first.
Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 5141


I'm going South


« Reply #2 on: January 29, 2012, 12:43:58 PM »

2  How do I make sure all permissions changed with all files

The command
Code:
ls -la
will list all files in a directory including their permissions and ownership details

Code:
ls -laR
lists all files in all subdirectories too, but to be of any practical use the output will usually have to be written to a file:
Code:
ls -laR >testlist.text

Even then you will probably get more output than you bargained for.


But you could of course simply set Dolphin or Konqueror to show owner, group and permissions.

Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 5141


I'm going South


« Reply #3 on: January 29, 2012, 12:54:40 PM »

3  should I change permissions for groups and others to forbidden or read only?
4  should I check off changes and deletions only by owner?

That depends on a) how paranoid you are and b) how many user you have. (The root user's home directory /root should obviously not be accessible to anybody but root, let alone editable by any other user. And ordinary users should ordinarily not be able to change files in folders owned by root.)
Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2702


God knows, i'm not an Angel!


WWW
« Reply #4 on: January 29, 2012, 12:58:56 PM »

or you can use mc, to delete your files...
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM