UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
how to get the permissions of any filesystems
---------------------------------------------------
what does it mean?
"permission denied while opening filesystem"
through commands can we give/get permissions of file systems
It means your login doesn't have either read,write or execute access to the data. Access can be give to you by ether root or owner.
Read on the whole permissions subject: http://wiki.debian.org/Permissions
read man pages too, type in terminal:
man chmod
man chown
What type of filesystem are you talking about? Is it a pen drive? Do you need to mount it?
An NTFS or FAT32 filesystem doesn't contain linux permissions, so you will need to add man mount.vfat and man mount.ntfs to your reading list. Look at the uid, gid, fmask and dmask options which determine the permissions for files and directories on the entire filesystem.
From your description, you may be trying to change the permissions of a system directory or of the root partition. The answer is simply don't. Regular users shouldn't have write access to these areas.
for permissions:
Case 1: for files
$ls -l
sample o/p
-rw-rw-r-- 1 ashwini ashwini 170803 Jan 29 14:27 shell-20110129-6.ogv
drwxrwxr-x 2 ashwini ashwini 4096 Dec 28 14:08 sketchbook
now the left most column shows d, r, w, x that means: directory, read, write, and execute. for root, user and the user who created(I am not sure about the third one). Here for changing the permissions you can use "chmod" command.
Case 2: for file systems
When you mount file systems , they can be mounted as read only, read write and read write execute mode. If you are having some executable files like shell script on a non-executable mounted file systems then you can not execute the shell script. For such cases, you will have to either modify /etc/fstab or you will have to check the options in mount command through which you are mounting the file system. If you are using ubuntu then you can install some application which will take care of this graphically.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.