LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-12-2004, 01:03 PM   #1
netsted
LQ Newbie
 
Registered: May 2004
Location: Danmark
Distribution: E-smith
Posts: 2

Rep: Reputation: 0
"chmod" vs. "attrib"


Hi everyone!

I want some documents in a shared folder on my Linux-server (E-smith) to be "read-only". I use "chmod 400" to make them so - that works fine.

When I access the shared folder from Windows, I can remove the "read-only" attribute by unchecking the "Read only" field. But I can not check that field again!

When the "read-only" attribute once is unchecked, it is not possible to mark it as "read-only" again, at leat inside DOS/Windows. Only by using "chmod 400" inside Linux.

I wonder if it has anything to do with my "permissions"?


Hope someone knows how to fix it - would be nice! :-)


/Netsted

Last edited by netsted; 05-12-2004 at 01:04 PM.
 
Old 05-12-2004, 01:57 PM   #2
JohnLinx
LQ Newbie
 
Registered: Jan 2004
Posts: 27

Rep: Reputation: 15
Netsted,
You are correct, you don't have permissions. The higharchy of the bits for CHMOD are World / Group / Owner. When you set the value using CHMOD 400, you are doing this from root. That would be the only account that would have access to this file, as you have removed all other permissions. When you are on your Windows machine, you are allowed access via the World bits. You then turn this access off, via attrib, now you have no access to the file. You might want to set a Group for this file. Your Windows system would have to authenticate to the Linux system using an account that is a member of this Group.
 
Old 05-12-2004, 02:17 PM   #3
netsted
LQ Newbie
 
Registered: May 2004
Location: Danmark
Distribution: E-smith
Posts: 2

Original Poster
Rep: Reputation: 0
Hi JohnLinx,

Thanks a lot for your quick respons - I will try it out!

Best regards,
Netsted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:51 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