Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
only unix filesystems can be subjected to changes in unix file permissions (where do you suppose the information would go? instaead permissions and ownerships of non-unix filesystems need to be hard set at mount time, e.g. "mount /dev/blah /mnt/blah -o uid=500,umask=022" says user 500 owns all the files with a mask of 022, i.e. rwxr-xr-x
I have to give the parameters in octal? 'Cause I don't want anyone to have write/execute permission (-o,<others>) to the disk, only the user billy. How do I do that?
as i said, you can't chmod / chown non-unix compliant file systems. set the mask on mount. it's a pretty trivial difference between an octal code an a character string...
What bassem says is correct, but i can't determine this way which user will have the priviledges(I can only type chmod when I log in as root). I can give an -o, but everyone will have access. It is non-unix compatible, I gave this order to the windows partition and it worked. But how do I give priviledges to a specific user?
-Rv is recursevily and verbose mode(it show all files affected by the order)
while you're logged in $home/billy/ type "ls -al" , this way you'll know every file and folder permission and the owner of it, the root and owner can only change mode
OK with the MP3 player(and other USB keys), but I still can't find out how to change permissions on a folder for a specific user. The command chmod isn't helping me 'cause the arguments are incomplete(it has u, but it won't let me specify which user will be the u). And I can't use the command for the current user, 'cause the system is letting me to use the command only when I log in as root. What am I supposed to do?
It seems that I didn't know how to change the permissions in the MP3 player after all. I've changed the owner from root to a normal user(through chown and chgrp) but whenever I mount it(sth that I still do from root), and open the folder I mounted it with Konqueror, I don't see my files. I saw in the man pages that this has something to do with the file /etc/fstab, but I got confused. What I want to do is whenever I mount this device(or any USB key), to be fully accessible by a specific user(read, write and execute commands).
Any ideas?
Offtopic: Hey, mr admin, why aren't any avatar options in the profile?
how many times am i going to have to tell you that YOU CAN NOT USE CHMOD / CHOWN ON A NON-UNIX FILESYSTEM? use the umask / uid / gid options in /etc/fstab.
and avatars are disabled, because they are for children and bored housewifes talking about babies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.