General :: How To Prevent Access To Unmounted Mount Point?
Jan 10, 2010
I'm using some software that using mount point such as truecrypt. I also mount shared folder on other machine (fileserver) and publish it using ftp. The problem is when the truecrypt volume dismounted or the shared folder mount point loosing connection to the fileserver, user can write to the mount point without knowing that they actually not writing to the truecrypt volume or to the shared folder.
My question is, when sometime the server reboot and truecrypt volume is not mounted yet, how to prevent write to the mount point? I dont run truecrypt mount automatically for security reason.Some question for shared folder, if fileserver restart and the shared folder mount point got disconnected, how to prevent write to the mount point?
I'm working on creating a bootable Linux CD to distribute a sandbox environment to customers that will work on multiple PCs.One requirement of this environment is that we do not want the user to have any access to the underlying hard drives in the computer to prevent any accidental and/or malicious damage. I can prevent the disks from automounting with a few udev custom rules, but is there any way to prevent/block the user from manually mounting the hard drives after boot up.
I'd like to add a user to my server that will only have access to a mount point over sshfs. Is there any way I can provide them this access without actually giving them permission to open a terminal on my server? I tried /bin/false and /sbin/nologin already, but /bin/false didn't allow the mount point to be made and /sbin/nologin prevented a login completely (also stopped the mount point from working).
How do I configure my Debian installation to mount external USB drives to mount points based on the volume names of the drives? For instance, if I have a thumb drive with the volume name of "SWORDFISH," how do I have Linux mount it at /media/SWORDFISH? I'm aware that this can be setup in FSTAB, but that requires that I know the UUID of the device beforehand and that I take the time to set each external device up in FSTAB first. That does nothing for me when I have a thumb drive that has never been plugged into my computer before.
This seems to be setup by default in Ubuntu/Kubuntu, but is not working for me with a fresh installation of Debian Squeeze and KDE4. I've spent the past 2 hours Googling for a solution and have turned up nothing. UPDATE: My results are inconsistent. Sometimes Debian mounts devices to mount points based on the volume names, and other times it gives them generic mount points (e.g. /media/usb1).
Is the mount point for external media (like USB) always /media?
Because in a Debian system, if I plug in any USB device that goes to the /media folder. So is it the case with all the other Linux flavors like Fedora, Ubuntu, etc. If a USB device is automatically mounted will it always go to the /media directory?
I am not concerned about the name of the devices. I am looking for every external media (like USB) to be listed under /media directory so that my code can run on any flavor of Linux.
I have a CentOS 5 production server with multiple OS-managed RAID-1 sets. I'd like to add a new mirrored set and move the /var partition to the new drives. On a non-RAID system I would boot from the install CD to edit fstab and copy the existing files to the new drive, but I'm pretty sure booting off the install CD does not recognize my RAID setup.
I'm using ext3 and I have my / partition on sda3. This is a full install, it has /bin /home etc etc on it, the only thing I have is sda1 is /boot and sda2 is swap.
I've configured my system to mount sda4 as /home/user as the system boots up, which puts all of my data on sda4.
My question is this. How do I access any data left in (sda3) /home/user? (Because trying that won't work). Is there some way to use a direct path? Like /device/sda3/home/user?
I have a directory, /root/backup, that I mount and run a bunch of rysnc scripts against to backup my box. I'm running into a very recent problem where when I run this command:
A directory that once looked like this:
Goes to this:
It changes from root to www (another user on my system) and I have no idea why.
When I look at the /mount/procs file, I see this:
So it looks like the uid is correct...
I believe this is what is causing my rsync scripts to fail (they only copy over directories and not the files in those directorys and I get a lot of permissions failed errors)
In my machine, there are 2 mount points - / and /userdata. From the root user, I want to create an oracle user at the /userdata mount point, i.e the home of the oracle user should be mounted on /userdata.
I built a Suse Linux server on vmware. I attached an RDM to the server and can now see the drive as a "Mass Storage Drive" in Applications - computer. When I double click on the icon, I get an error message that indicates that the drive can not be mounted. I tried to mount in gnome terminal using: mount /dev/sdb and get "can't find .dev/sdb in /etc/fstab or /etc/mtab". I tried adding device that I would like to mount to fstab, but don't think I have the settings correct. I looking for any info that might step me through the process.
I have two servers, 82 and 70.My exports file on 82 reads /...70(rw)on 70 I have a mountpoint called mnt_for_82I execute on 70mount -t nfs -o rw ...82:/ mnt_for_82I go to server 70 and indeed can read and travers the mounted subdirectories. However, I try to create a file or subdirectory under the mount point on 70 and I get a *Permission Denied* error.I'm sure there is a simple explanation for this issue as well as a correct nomenclature for what I'm trying to do in nfs
I have recently installed debian jessie on my laptop , during installation i didn't mount 2 of my partitions , now when i want to access them i have to give the root password every time i click on them , i searched the google , i found that i have to add a line in fstab file : so i i checked the partition that i wanted to mount (by typing fdisk -l) , and i added this line to the end of the fstab file :
After adding the line at the end of my fstab file , something strange happened , i rebooted the computer and mate didn't come up , it was a console like screen , i had to access fstab from there to delete the line and enter mate . i did this for 2 times and both times the same thing happened . How can I mount my partition permanently ?
I am copying some backup files to a NAS by connecting an NFS export on the NAS to a mount point on my linus box. I then copy the files to it with a cron job that runs nightly. I have mounted the NAS to /mnt/nas. How can I test that the mount point is active before I copy to it? I wouldn't want to copy to /mnt/nas unless it was actually connected to the NAS.
My current pc running on LINUX raid 1 with both 80bg hdd, the /dev/md0 is growing. Either a) I need to create another mount point to utilise the space.How i do this ? OR b) Clone the existing 80gb with 250gb, so /dev/mdo got more space?
# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/md0 20161084 15577508 3559440 82% /
I have a program that can create a fuse. For that i have to specify a mount point , like mono ccfs /mount. But how will I make /mount to be a fuse mount point? I donno whether my question sounds right or makes sense. But I want to create a fuse mount basically to provide it to the program. I dont hv any device or fs to mount initially .
I need to know particular mount point mounted or not before send data to that mount point.Are there any commandsi used this command. mount -t nfs 172.16.102.50:/root/ESSR_share /root/shared_storage/pc50 -o rw,hard,intr but it take long time (when machine(172.16.102.50) is not available)
I have a samba share that I mount locally at boot through fstab. The share is writable and if I access the share directly, say with konqueror and smb (smb://hostname/sharename) then I can do anything I want (create, write, delete, edit, files/directories). I have a mount point on my local machine
Code:
/shares/mp3
and I (username dtest) was unable to do anything except read files and create directories trying to do them to the local mountpoint except as root. I figured it would be a matter of
Code:
chown -R dtest /shares/mp3
but I was unable to do that even as root, I kept getting permission denied. When I did
Code:
ls -alt /shares/ it told me the owner was 1000 and the group was root. Dtest was already a member of the root group and I was able to
Code:
chmod -R 774
as root but I still couldn't do anything except read and create directories directly via the mountpoint. Ultimately I solved this by changing the uid of user dtest via kuser and then just chowning my home directory back to dtest. It seems like as root I should be able to change the owner of the directory. I know it's because this is a samba share, but it doesn't make any sense why root couldn't just chown it. Is there another way to change the owner of a directory, or is this set by the machine hosting the samba share?
Using SUSE 11 with Gnome. I mounted a CIFS share from a Windows server as /mnt/win. With the file browser, I can browse to file system/mnt/win and then the files and folders of the Windows share come up fine and I can open them. When I use the file browser to browse to network, the server hosting this share is listed. Then I browse to that server and it lists no shares (nothing at all). I can't go any further than the server. Is there a separate authentication necessary for the file browser to see this share from the network place?
i'm in search of Script that sends a mail to the user if the mount point goes beyond 80% of its full space. send mail is configured in the system so that it can communicate with mail server.
Also I have all files it asks for installed including dostools..Btw I used usb creator, then went to gparted and did something. The system is fat 32 now but with same message, not including ext4 part. Just the mount point message, and something about dosftools and mtools, wihich also are installed.
On SUSE 11.2 when a CD or DVD is automounted (in the /media directory) it appears that the mount point chosen for the disk always has extra blanks at the end of the mount.
For example, if the label on the CD was DISK-001, the mount point chosen by SUSE is
/media/DISK-001 /
In 11.1 (and earlier) the mount point would have been
/media/DISK-001/
I'm assuming that the trailing blanks are filling in unused or blank chars at the end of the CD label.
Is there any way to change this annoying behavior? I much prefer NOT to have trailing blanks in the mount point.
I have servers installed with RHEL 4 2.6.9-89.0.9 ELsmp. I tried using uuid and label in /etc/fstab to automount usb drives to mountpoints that I specify after reboot. Unfortunately, it just does not work in all my RHEL4 servers. After every reboot, /etc/fstab will be automatically modified and all configurations related to my USB drives will be changed. Irregardless of whether i use UUID or LABEL in my /etc/fstab.However, it works on RHEL5. But, upgrading is not an option in my environment. I have been googling around looking for alternatives but everything seems to point back to using UUID or LABEL in /etc/fstab. Anyone has tried something that works? Please help me, thank you.
I have a complicated situation due to my goals and network structure. I have in mind a potential solution, a bridge, but I do not know whether it is feasible or what hardware it will require.
The network:
My apartment community provides residents with free Internet access through an ancient T1 line. We do not have the option of other Internet providers, so having a router and modem in the home are not an option. The T1 line is split among some 24 switches, one for each building, and each switch has one port per floor. At each floor, there is a D-link WAP, and each has a separate SSID and WEP key. Additionally, they control access at the switch level using Access Control.
My goals:
I'm used to being in control of my networked environment. I like to have friends over often, and most of them have a laptop, a smart phone, or both, which makes Access Control a pain. I don't want to have to think ahead and get their MAC addresses to the IT consultant while he's here during business hours. My wife and I have 6 devices, two of which require an Ethernet connection. I use a few applications for streaming that utilize UDP (I'm not sure if the WAPs are smart enough to even handle this) and I don't like having my traffic muddled with my neighbors.
I should note that I tried extending the network with my Airport Extreme router, which apparently only works with other Apple devices. I've also looked into WDS, but that seems to require an unlikely amount of cooperation from the IT consultant on site.
The potential solution: a Linux server that acts as a router. Ideally, it could act as a webserver for a small static site as well, but let's focus on the routing. I'd like to bridge two NICs and use masquerading (Internet Connection Sharing). The public interface would connect to the WAP using WEP. The private interface would allow up to 8 devices to connect to the server.
It seems easy enough to configure the public interface, and even to bridge the connections. What I've never done before is purchase a wireless card that can accept multiple clients. Maybe they can all do this?
I have a fit-PC server with Debian GNU/Linux (Lenny). I would like to use it as a wifi access point since my Linksys WRT54GS has become unstable.I have a USB Ralink wifi NIC. When I insert the card to USB I can see this with lsusb: Bus 001 Device 002: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter.I have tried following various HOWTOs on using wifi card as AP in Linux, however, it seems that the card cannot go into monitor mode. I believe this is because I must use a newer driver or upload non-free firmware or something like that.I have tried installed wicd, but it does not help.
I bought this wifi adapter because I was told that it is one of the most common used Linux supported wifi cards that can be used as access point and a lot of other stuff.How do I set up this USB wifi card as wireless access point in Debian Lenny?