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 - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-02-2004, 05:12 PM   #16
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15

do NOT chmod 777 your filesystem. This is a very bad thing to do. Instead, use my little suggestion above, and instead of ext3 or vfat or whatever, just put auto. Then, when you figure out what filesystem it is, fix the fstab. ok? do not chmod 777 the directory or the device. This ain't windows, kids.

/edit

How did you make the filesystem?

mke2fs /dev/hdb1 <------ will make ext2 filesystem.
mke2fs -j /dev/hdb1 <---------will make ext3 filesystem.

after your feedback, i am darn near convinced that this is your problem.

If you want, you can give me shell access when i get home, and i'll fix it for you.... lol!

/edit

Last edited by sketelsen; 09-02-2004 at 05:15 PM.
 
Old 09-02-2004, 05:45 PM   #17
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well...you better read the Q again.../opt2 is not meant to contain system-files, it's a user-disk. so chmod 777 looks ok to me...

egag

edit : forgot the '2'....

Last edited by egag; 09-02-2004 at 06:11 PM.
 
Old 09-02-2004, 05:48 PM   #18
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
yeah, but what if the USER of the USER file wants to restrict access so that other NORMAL USERS can't get to it?

I tried, what can i say.
 
Old 09-02-2004, 06:17 PM   #19
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
don't know if that's the case, he wrote:

''I want users to have read write and execute. '' so i think he wants
just that.

to protect parts of /opt2 from others then ''owner'', guess
to use chmod again....

edit: any file made by a user in that dir. will have default permissions
of that user i.e write-protected for others ( unless the owner changes it ).
so that should be ok......

egag

Last edited by egag; 09-02-2004 at 07:54 PM.
 
Old 09-02-2004, 11:00 PM   #20
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
regular users don't have access to chmod.

just so ya know.
 
Old 09-03-2004, 01:38 AM   #21
digi691
LQ Newbie
 
Registered: Aug 2004
Location: Chicago
Posts: 17

Original Poster
Rep: Reputation: 0
I am ready to give up here......if you want to try i'll give you access to my shell account. Its a new system so there isn't much on it that i don't want people to see. my aim handle is didge84. If i am on that means i am by my computer and i'll give access to whoever want to take a try at it. I think i might try out Gentoo if this doesn't work.....

didge
 
Old 09-03-2004, 06:30 AM   #22
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well... never give up. i know

#chmod -R 777 /opt2

will give you wat you want. ( i just tried , every user who puts a file there, will be owner of
that file and so will be the only one with write-permission )

dunno what sketelsen means , there's no fs-prob, it's a permission prob.

egag

.
 
Old 09-03-2004, 06:36 AM   #23
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
Who & what group owns the file??

ls -l will give you the info you need.

If root is the owner and root is the group then you need to chgrp & chown the directory that you are trying to access.
 
Old 09-03-2004, 06:56 AM   #24
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
there's no need to change owner ( or group ), the owner is the one whe sets the permissions,
and if he sets it to '777' anyone can read,write and execute. ( it's that simple.....) :-)

egag
 
Old 09-03-2004, 07:03 AM   #25
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
Sure, but that is not the proper practice.

The way of the admin read:

Thou shalt not have any world writeable files.

So it be written so shall it be done.
 
Old 09-03-2004, 07:21 AM   #26
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
yip, guess you're right there, in fact the chmod 777 gives access to anyone , but that
was the exact Q. ( think chmod 770 is better, but then all users have to be member of that group and you gotto chgrp for that dir. indeed )

egag
 
Old 09-03-2004, 07:25 AM   #27
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
True that
 
Old 09-03-2004, 07:27 AM   #28
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
So digi691 is this all sinking in yet? j/k
 
Old 09-03-2004, 09:52 AM   #29
digi691
LQ Newbie
 
Registered: Aug 2004
Location: Chicago
Posts: 17

Original Poster
Rep: Reputation: 0
chmod 777 worked......thanks guys it took a while but it works. I don't know why it would not mount with the other options in the fstab.
 
Old 09-03-2004, 10:33 AM   #30
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
setting those permissions in fstab is only usefull for vfat , ntfs...etc. those perm's are for that whole partition.
when using ext3 fs, perm's are per dir. and per file, so you have to use 'chmod' to set them
and you can set them per file......
( learning learning every day... :-) )
nice it works.......

egag.
 
  


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
Hard Drive Permissions djljjm Linux - Newbie 2 04-22-2005 02:00 PM
Hard Drive Permissions djljjm Linux - Newbie 3 04-18-2005 03:35 PM
Hard Drive Permissions djljjm Linux - Newbie 1 04-18-2005 11:29 AM
Hard drive permissions Rªdical_£D SUSE / openSUSE 3 01-10-2005 07:20 AM
hard-drive permissions Airburned Linux - General 4 07-13-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 PM.

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