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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, I'm new to the linux community so I apologize in advance if my terminology is confusing and/or my question is simple yet wordy.
My summary: After a steep learning curve I currently have a dual boot system (Windows XP and Suse 9.0 - the default minimum free version) running on two physical hard drives. The first drive has 3 partitions two of which are formatted as NTFS and running Windows. /dev/hda2 is mounted as /windows/C and /dev/hda4 is mounted as /windows/F. Linux is happily running on the other drive.
My problem: When I am logged in as a regular user I can access /windows/C without problems but I am denied permission to access /windows/F. I have tried using chmod, chown, and chgrp (while logged in as root) in order to change the permissions and ownership and such but have had no success. When listing (using ls -l) the contents of the windows directory I see that C has "users" for a group name so I assume that's what is allowing me to access it. But F has "root" as the group and user name and my attempts to change either to "users" have failed.
I would like all users to be able to access the F directory, can someone please help.
I was actually having the same problem, where my windows 98 drive was uneditable and inaccessible due to what I thought was the permissions, on my new slackware system, and the umask=000 option in fstab cleared it up.
I wouldn't go for umask=000, expecially on a ntfs partition... this means any user can completely clear the partition. Moreover, I'm not sure ntfs write support is really mature.
I would go with 022 (only root can write), or mount it ro.
.. I see that C has "users" for a group name so I assume that's what is allowing me to access it. But F has "root" as the group and user name and my attempts to change either to "users" have failed.
there should be a gid=100 (or other number) in C options... copy it to the F too. Be sure not to insert spaces among options.
where the options were copied from the line referring to /windows/C
I was wondering what the part between "ntfs" and the zeros means. I see that it changed the group name of F to users but it seems a little redundant and I don't know what the rest is doing. Specifically, what does umask=0002 mean?
Should I modify this to give all users rwx access?
Also, I'm still having trouble changing the permissions for F (as well as the owner and group). I followed Franklin's instructions (modified to add writing permission instead) but to no avail. The following text is my attempt. What am I doing wrong? Is the best way perhaps to modify one of those options in
/etc/fstab? I would like all users to have rwx permission.
Thank you for your time.
jla@255:~> umount /windows/F
255:/home/jlaing # cd /windows
255:/windows # chmod a+w F
255:/windows # exit
jla@255:~> mount /windows/F
jla@255:~> ls -l /windows
lrwxrwxrwx 1 root root 1 2004-01-08 14:08 c -> C
dr-xr-xr-x 1 root users 8192 2004-01-07 01:01 C
lrwxrwxrwx 1 root root 1 2004-01-06 15:29 d -> D
lrwxrwxrwx 1 root root 1 2004-01-06 15:29 e -> E
lrwxrwxrwx 1 root root 1 2004-01-08 09:34 f -> F
dr-xr-xr-x 1 root users 4096 2004-01-06 02:46 F
lrwxrwxrwx 1 root root 1 2004-01-08 14:08 i -> I
dr-x------ 1 root root 4096 2004-01-06 05:35 I
2) FAT filesystem doesn't have the concept of 'owner' or 'permissions', so you must specify what users can/cannot do (to learn more about permissions, use 'man chmod') I think in ntfs there is some ownership, still it's not in terms of unix owners
This is the relevant part of mount manpage ('man mount')
Set the umask (the bitmask of the permissions that are not
present). The default is the umask of the current process. The
value is given in octal.
3) Probably what makes free software great is good to excellent documentation. if you feel courious/have a question about a command, the first thing to try is 'man commadname'. Pressing 'h' while in man pages takes you to viewer help. Take a minute to read the 'searching' section, it's worth it.
HOMEWORK: find the info on umask in muont man page with '/' and 'n' commands