LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2004, 08:32 AM   #1
garr0323
Member
 
Registered: Oct 2003
Distribution: Slackware9.1, Mandrake9.1
Posts: 70

Rep: Reputation: 15
Files Permissoin


hi i have a seperate HHD fro music and stuff, it is under /mnt/hda. all of the main folders in it are chmod 777, but how without doing all of that for every file and subfolder or new folder that i make can i make them fullly writable and executable? and is there a away to make a link from the /mnt/hda to my desktop? thanks
 
Old 02-28-2004, 11:38 AM   #2
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
/etc/fstab

You might want to add/change an entry in your /etc/fstab file.

From what you are talking about, it sounds like you may want a line that looks like:

/dev/hdXX __________/mnt/hda_________auto_______noauto,user,umask=000,dmask=000,fmask=000______ 0_________0


(note...that should all be on one line...it may look like two if it wraps) ... Also...the "______" are just spaces....do NOT put "_____" stuff in the /etc/fstab...I only used it to get some separation between the groups of information....the forum truncated multiple spaces into just one space and it looked a little confusing.

Be sure to replace /dev/hdXX with whatever the drive device you are talking about is (e.g., /dev/hdd1, /dev/hdc5...).

This should allow any user to mount the drive by just typing "mount /mnt/hda" from the command line.

The masks should set all files and directories to the equivalent of "chmod 777".

Give it a try and see if that's what you're looking for.

You can adjust the masks to suit your needs (see "man mount"). You can also add restrictions on access by adding gid= and uid= flags (again...see "man mount").

Personally, I prefer more restriction on my mounts. For example, one of my fstab lines is:

/dev/hda1 /mnt/98 auto noauto,owner,gid=6,uid=1000,umask=077,dmask=077,fmask=077 0 0

where I had changed ownership of /dev/hda1 to the user with uid=1000. It may not be a great idea to change ownership of devices in the /dev directory like I did, but it seems to accomplish exactly what I wanted. Only user with uid=1000 (and root, obviously) can mount that partition and noone else can even see any contents when it's mounted.

Some more exprienced users may add or comment on what I've said. I'm nowhere near "knowledgeable" about this stuff.


Bob
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 06:32 AM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM
Permissoin to a group please bear with me. Paul12 Linux - General 1 08-04-2001 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration