Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] Set partitions to hide or read only
Re: Set partitions to hide or read only
Also out of media or mnt folder, in every subfolder of root folder?
Re: Set partitions to hide or read only
yes.
as far i know (as i usually do it like described i ain't got much experience doing it different, but i did)
as far i know (as i usually do it like described i ain't got much experience doing it different, but i did)
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
Re: Set partitions to hide or read only
Thanks.
What are the differences between to set authorizations (read only, read write, ...) from fstab file, /mnt/sdb5 folder and partition (labeled in my case "10 GB Volume") in Computer?
What are the differences between to set authorizations (read only, read write, ...) from fstab file, /mnt/sdb5 folder and partition (labeled in my case "10 GB Volume") in Computer?
Re: Set partitions to hide or read only
What is priority between authorization of "10 GB Volume", sdb5, fstab?
Re: Set partitions to hide or read only
Howdy,
Alex_80 wrote:
This will over-ride whatever the permissions are for that mount point (ie; directory) in its' filesystem. The directory point will revert when the partition is unmounted.
When set in /etc/fstab, by that i think you mean passing options such as 'users' etc ... your just fine tuning the above. Even by setting allowable access to 'users', it will need that also to be the case in the mounted filesystem. But you could 'deny' that access via /etc/fstab though, even if allowed in the mounted filesystem. Effectively over-rideing that filesystem. But then, by mounting the filesystem somewhere else, you could over-ride its' other mount points accessibility.
That is not as complex as it might sound either . But do, do some simple experiments with that just, to verify. It's been a while since i last had to do anything along those lines. And you wont do any harm in the process.
]# chmod 755 /mnt/some_dir
]# chown <name> /mnt/some_dir
]# chgrp <name> /mnt/some_dir
Using the above programs on a mounted partition will effect the changes needed to verify what i stated above. And are easily reversible.
Note:
-------
group member ships are not duplex in nature. That is, being the member of a group ... such as 'www_data' doesn't mean that 'www_date' is also a member of your user group.
jm
Alex_80 wrote:
When you set the permissions directly to a mounted filesystem, as that is effectively what a mounted partition is ... your setting them in that filesystem.>>
What are the differences between to set authorizations (read only, read write, ...) from fstab file, /mnt/sdb5 folder and partition (labeled in my case "10 GB Volume") in Computer?
>>
This will over-ride whatever the permissions are for that mount point (ie; directory) in its' filesystem. The directory point will revert when the partition is unmounted.
When set in /etc/fstab, by that i think you mean passing options such as 'users' etc ... your just fine tuning the above. Even by setting allowable access to 'users', it will need that also to be the case in the mounted filesystem. But you could 'deny' that access via /etc/fstab though, even if allowed in the mounted filesystem. Effectively over-rideing that filesystem. But then, by mounting the filesystem somewhere else, you could over-ride its' other mount points accessibility.
That is not as complex as it might sound either . But do, do some simple experiments with that just, to verify. It's been a while since i last had to do anything along those lines. And you wont do any harm in the process.
]# chmod 755 /mnt/some_dir
]# chown <name> /mnt/some_dir
]# chgrp <name> /mnt/some_dir
Using the above programs on a mounted partition will effect the changes needed to verify what i stated above. And are easily reversible.
Note:
-------
group member ships are not duplex in nature. That is, being the member of a group ... such as 'www_data' doesn't mean that 'www_date' is also a member of your user group.
jm
http://counter.li.org
#313537
-=- The FVWM wm -=- http://www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
#313537
-=- The FVWM wm -=- http://www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Re: [Solved] Set partitions to hide or read only
Thanks.
About to hide partition I have solved don't inserting (or commenting) it in /etc/fstab file.
About to set partition sdb5 to read only I have solved inserting in /etc/fstab:
/dev/sdb5 /mnt/sdb5 ext3 defaults, ro 0 0
About to hide partition I have solved don't inserting (or commenting) it in /etc/fstab file.
About to set partition sdb5 to read only I have solved inserting in /etc/fstab:
/dev/sdb5 /mnt/sdb5 ext3 defaults, ro 0 0
Re: [Solved] Set partitions to hide or read only
Howdy,
Not having an entry, or commenting in an entry in /etc/fstab will prevent mount from auto mounting the partition at boot time ... true ...
But ...
The /etc/fstab file is only there so that 'mount' can source it when ever it is invoked. It just saves having to provide options everytime it is used. It is easily over-rided by a script.
Adding the 'noauto' option to the option list will squash that though.
The last '0' will stop fsck from ever checking it too. If that's what you realy want.
jm
Not having an entry, or commenting in an entry in /etc/fstab will prevent mount from auto mounting the partition at boot time ... true ...
But ...
The /etc/fstab file is only there so that 'mount' can source it when ever it is invoked. It just saves having to provide options everytime it is used. It is easily over-rided by a script.
So, mount will mount sdb5 read-only. And it will prevent a non-root user from mounting the partition (fs) as well. But it will be 'auto' mounted at boot, and so be available for viewing by any one with access.>>
/dev/sdb5 /mnt/sdb5 ext3 defaults, ro 0 0
>>
Adding the 'noauto' option to the option list will squash that though.
Code: Select all
/dev/sdb5 /mnt/sdb5 ext3 defaults,noauto ro 0 0
jm
http://counter.li.org
#313537
-=- The FVWM wm -=- http://www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
#313537
-=- The FVWM wm -=- http://www.fvwm.org -=-
Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Re: [Solved] Set partitions to hide or read only
1) About read-only partition it's OK, I wish that partition is auto mounted as read-only at boot for all users and root.
2) About hide partition it's enough to prevent that users and root can mistake mounting that partition by double click in Computer, so my solution it's OK for me, but if there is a solution to make impossible mount this is better.
2) About hide partition it's enough to prevent that users and root can mistake mounting that partition by double click in Computer, so my solution it's OK for me, but if there is a solution to make impossible mount this is better.