Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am running debian etch on a machine that dual boots with winxp. i would like to access one of my nfts partitions (the one with all the music). i tried going at it through /dev/hdb5 but realized that i had to mound it first. so i mounted it at /mnt/win ( #mount -t ntfs /dev/hdb5 /mnt/win ). when i try to access /mnt/win/Music through konqueror the icon has a little lock on it and clicking gets a "you dont have enough permissions to read" message.
so i thought i'd just copy the directory /mnt/win/Music to /home/leprkhn ( #cp -r /mnt/win/Music /home/leprkhn )
and it worked!
the directory is now also in /home/leprkhn/
except that when i try to access it i still get the "you do not have enough permissions to read" message.
how do i get proper permissions? i am the only user on the machine... and id really like to know how to do this.
made it fully accessible.
i get the feeling though that fully accessible isn't a good thing.
i tried:
#chmod -Rv 444 /home/leprkhn/Music
but then JuK wouldnt play any of them....
so i want back to full.
one question though: am i correct in assuming that giving full access to a directory like that is bad form from a security standpoint?
Well, there are better decisions you could take from a security point of view. 777 means anyone can change all your files in that directory. Here is the idea:
the number has three parts: user / group /others
Each number represents the permissions :
4 =read permissions
2= write permissions
1 = execute permissions (=required to be able to access a directory, among other things).
The numbers add up to determine the set of permissions for user, group and others.
So by using 777, anyone - the user(=owner of the file(s)), the group that the user belongs to, and all others - can do pretty much as they like.
Which is why I recommended chown instead: chowning = changing the owner; if the files were owned by root before, they are now owned by the particular username associated with the command. Then you can use 755, which is safer.
This will set it to read write execute for owner, read execute for group and read execute for everyone else.
Here is how it works with spaces to separate the groups:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.