password protected folders?
Posted: 29 Jun 2010, 03:01
I was wondering how would I password protect a folder that has spaces in the folder's name?
For instance...
If I do this:
This is what I get:
And if I do this:
This is what I get:
It wont let me root and protect my folder!!!
Also, lets try a folder with no spaces:
It works!!!
And this:
It works again, because this is what error I get when I try to open it:
To change back the permissions for myself do this:
And this:
Soo, I'm guessing I can't protect a folder that has spaces in it...
Why can't I do this?
If there is a way please do tell..
One more thing, how do I access a rooted protected folder, without changing back the permissions?
For instance...
If I do this:
- Code: Select all
[simeon92@computer ~]$ su -
Password:
[root@computer ~]# chown -R root:root /home/simeon92/Desktop/MY DOCUMENTS
This is what I get:
- Code: Select all
chown: cannot access `/home/simeon92/Desktop/MY': No such file or directory
chown: cannot access `DOCUMENTS': No such file or directory
[root@computer ~]#
And if I do this:
- Code: Select all
[root@computer ~]# chmod 700 /home/simeon92/Desktop/MY DOCUMENTS
This is what I get:
- Code: Select all
chmod: cannot access `/home/simeon92/Desktop/MY': No such file or directory
chmod: cannot access `DOCUMENTS': No such file or directory
[root@computer ~]#
It wont let me root and protect my folder!!!
Also, lets try a folder with no spaces:
- Code: Select all
[root@computer ~]# chown -R root:root /home/simeon92/Desktop/EMULATION
[root@computer ~]#
It works!!!
And this:
- Code: Select all
[root@computer ~]# chmod 700 /home/simeon92/Desktop/EMULATION
[root@computer ~]#
It works again, because this is what error I get when I try to open it:
- Code: Select all
The folder contents could not be displayed.
You do not have the permission nessary to
view the contents of "EMULATION".
To change back the permissions for myself do this:
- Code: Select all
[root@computer ~]# chmod 777 /home/simeon92/Desktop/EMULATION
[root@computer ~]#
And this:
- Code: Select all
[root@computer ~]# chown -R simeon92:simeon92 /home/simeon92/Desktop/EMULATION
[root@computer ~]#
Soo, I'm guessing I can't protect a folder that has spaces in it...
Why can't I do this?
If there is a way please do tell..
One more thing, how do I access a rooted protected folder, without changing back the permissions?