General :: Mount One Directory To Another While Mapping The Original Directory's UID To Another

Aug 23, 2011

I'd like to mount the directory /var/www/mysite to the directory /home/daniel/mysite, but also have the user of the mounted files mapped from the original user (www-data) to my own user (daniel). So that the file /var/www/mysite/index.php who's user is www-data will appear in the mounted directory as /home/daniel/mysite/index.php and be owned by daniel - and alternatively, if I create a file /home/daniel/mysite/test.php with my own user, it will be created in the original directory under the user www-data Is it possible? If not, what alternatives do I have so I can use an IDE and still make sure all the files belong to the HTTP server's user?

View 2 Replies


ADVERTISEMENT

General :: Auto Mount More Than Directory In The Same Directory ?

Apr 7, 2010

How can i auto mount more than directory in the same directory ? i want to automount 2 home directories in the /home and still be able to enter the other home directories !

The problem that i've another account on the system with home directory joe when the user1 home directory auto mounted i become unable to enter joe home directory !

View 1 Replies View Related

General :: How To Get Original Blacklist Conf File In Directory

Jan 6, 2011

I need advice in getting the original blacklist.conf of the directory /etc/modprobe.d/ because I erased and I don't know if that file could make me have some issues in the future, so if any body can lend me a copy of that file or refere me to some page where i can get it. Is for the slackware 13 32bits distro.

View 2 Replies View Related

General :: Change /temp Directory From Its Original /dev/hda8 To Destination /dev/hdd5?

Dec 7, 2009

On Debian Standard System I would like to is change /tmp directory from it's original /dev/hda8 to destination /dev/hdd5

Code:

Disk /dev/hda: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]...

If I change /dev/hda8 to /dev/hdd5 and reboot the startx command fails to run.

View 7 Replies View Related

Fedora Networking :: When Try To Mount The Share To A Different Directory On The Server, Receive A 'no Such Directory' Error?

Dec 18, 2010

I have a server with Fedora 13 with which I would like to get NFS working. I have looked up multiple howto's and tutorials, but I'm having a problem not addressed by any of them.Official how-to, another how-to, and another how-to.I have verified that nfs-utils, nfs-utils-lib, portmap, and system-config-nfs are installed and running. I have verified that I have, in fact, shared the directory that I want to share, and that the proper permissions are set.

I had to go through some gyrations to get the Belkin wireless N router to allow my server to have a static IP. However, I can ping the server from the nfs client (a toshiba satellite running mint 8), and vice versa. I have (for now) disabled firewalls on both computers. I think I have disabled SELinux on Fedora 13 (for now).When I attempt to connect to the server from the client, the output looks like this:Quote:

aragorn ~ # mount -v 192.168.2.101:/test /home/kelev/test/
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Dec 18 12:21:09 2010

[code]....

View 7 Replies View Related

Ubuntu :: Access Files That Existed In Directory Before Mount Partition To Directory?

Feb 21, 2010

Recently I mounted a larger partition into my home directory since I was running out of space, Everything went smoothly, but it caused me to wonder about something I cant figure out. While playing with the mount unmount commands when I was copying everything over... before editing my fstab.

Is there a way to access the files that existed in a directory before you mount a partition to that directory? after mount the original files are gone.unmount and they are back, Where do they go?

View 3 Replies View Related

Ubuntu :: Cannot Mount Unencrypted Directory To Encrypted Home Directory With Fstab

Aug 26, 2010

I have Ubuntu Karmic. I chose to install with an encrypted home directory. Recently I got a warning that I only had 2GB of drive space left. This is mostly because of my videos. So I went and bought a new hard drive and partitioned it and made 1 ext4 partition and copied my videos all to the new hard drive. I added a line in my fstab to mount the new hard drive to ~/videos, but when I reboot the computer, there is a screen saying something like "error mounting /home/me/videos, press S to skip or something else to reboot". If I press S to skip, then when my system comes up there is a video directory but it's empty because my other hard drive didn't get mounted. I can run sudo mount /dev/sdb video/ and it will mount fine and I can see all my videos, so why can't fstab mount it? Does this have something to do with my encrypted home directory?

View 14 Replies View Related

SUSE :: Mount NFS Directory As Read-only Except For 1 Sub-directory?

Jul 14, 2009

We currently have a NFS shared Directory mounted as read-only on our server.This directory contains multiple sub-directories and files. It being read-only is a equirement. Now, we need a directory underneath to be read-write. Is there a graceful way to make that happen? Like a special mount option to use? Basically objective is: /u01 is mounted as read-only and has 3 directories: dir1, dir2, dir3 dir3 has 2 sub-directories- sub1,sub2/u01/dir3/sub2 needs to be read-write, while all other are read-only.

View 2 Replies View Related

Software :: Perfoming A ./configure Script Outside The Original Directory Tree

Jan 18, 2011

I have a user account (no root access) on a Debian system. My disk quota for my home directory is limited to 250MB, of which I've used 150MB.

I would like to install a program that requires 95MB of space (let's call it prog-5.1) into $HOME/local/bin. Because the source files take up 1GB, I've had to place them in the /tmp directory (to stay under my limit).

Unfortunately when I run the config script, I receive the following:

Code:

The reason for this is that /tmp is mounted in noexec mode, meaning I can't execute code in /tmp directory:

Code:

I'm wondering if anyone has any ideas about running the config script in my home directory, and somehow pointing it to configure the files in the /tmp/prog-5.1/ directory.

View 5 Replies View Related

Ubuntu Multimedia :: Cp All The File Entries In This Playlist From Their Various Original Directories And Into One Target Directory?

Jun 14, 2010

I've got a few large, unsorted folders where I dump mp3s. I manage it all through rhythmbox and I've decided to separate the wheat from the chaff by paring down stuff I don't want and throwing all the desirable stuff into a big (~1,800 file) playlist file saved to my desktop.My question to you is, is there a hack that'll let me cp all the file entries in this playlist from their various original directories and into one target directory? Playlist format is:

Quote:
[playlist]
X-GNOME-Title=Biglist
NumberOfEntries=1823[code].....

View 3 Replies View Related

General :: Copy A Partition To A Directory, Then Mount It?

Sep 4, 2009

i've been getting into problems trying to move around my partitions, by copying them to a directory on a partitions with alot of extra space, then mounting then with --bind. i think it's todo with the permissions, like i can run gdm for the gui but i can't login.startx doesn't work though, gives me some errors but i don't know alot about x windows. but like the partitions are mounted, but just the system doesn't work properly with them this way?this is my method

Code:
rsync -aHPvx /usr/ /store/usr_proxy
then in fstab
Code:
/store/usr_proxy /usr ext3 bind,defaults 0 0

View 2 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: How To Mount Remote Filesystem For / Home Directory

Oct 17, 2010

have a Debian server which I use to hold my home directory for my user account. I used to use Windows 7 and connect to my /home/username directory via Samba which worked great. I could access all of my files as if they were sitting on my local PC, but they were actually sitting on my Debian server.

Now I have decided to give Ubuntu 10.10 a try (looks promising so far!).One thing I'm not sure how to do is to mount my home directory from my server! I am able to open an sftp connection to my server, but not able to access them natively as they were /home/username on my local machine.I'm assuming I need to mount my home directory somewhere in my fstab before it starts up, but which protocol should I use? I'm used to using windows networking, but am trying to get more into linux.Should I use NFS?

View 2 Replies View Related

General :: Ubuntu 10.10 - Mount Failure (No Such File Or Directory)

Apr 7, 2011

I can select Ubuntu 10.10 OS from the grub menu, but it no longer loads? It scrolls through some lines, including mount failure and "No such file or directory." before halting below :
(initramfs)
The same happens when recovery is selected.

View 11 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

General :: Link A Directory In Ubuntu To A Directory In Windows 7?

Apr 12, 2010

I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the folder in Ubuntu, I am linked to the folder in Windows.

View 1 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

General :: Using Cp Properly - Copy A Directory Somewhere Else Into This Current Directory ?

May 13, 2011

I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.

Code:

That is what it shows in the man pages, but when I do that, it says cp: no match

View 5 Replies View Related

General :: Allow Normal Users To Mount Tmpfs Under Subdirectories Of Their Home Directory?

Oct 11, 2010

How can I allow normal users to mount a tmpfs under any subdirectory owned by them?

View 3 Replies View Related

General :: Mount A Specific Directory On Server To A Local Windows Machine?

Jan 20, 2011

I have a directory on my server at /home/dave/www/images/site (ext3) which I want to mount directly to my Windows computer so that I can transfer data easily via command line tool. Is that something possible?

View 4 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

General :: Changes Directory To The Previous Working Directory?

May 15, 2011

Just a simple question

Code:
$ cat -
do in the Bash? I know 'cd -' changes directory to the previous working directory, but 'cat - ' does not seem to do the same thing.

View 3 Replies View Related

General :: Access Directory Outside Of Home Directory?

Apr 13, 2010

I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?

View 7 Replies View Related

Red Hat :: Mapping /proc/scsi/scsi Entries With Respective Device Names In /dev/ Directory

Apr 11, 2011

In my understanding, the way /proc/scsi/scsi gets populated, /proc/paritions also gets populated in the same fashion. i.e. the description for first entry of /proc/scsi/scsi can be seen in the first entry of /proc/partitions and same for rest.

So, With this assumption, in my project, I used to relate first entry of /proc/scsi/scsi with first entry of /proc/partitions to get its total size and same for all entries.

But, I observed some differences in following scenario, where

1) The first 4 entries in /proc/scsi/scsi are SAN luns attached to my system and for which the actual device names in /dev/ are sda,sdb,sdc and sdd.

2) The last 4 entries are the internal HDDs on same system. In /dev/, their respective device names are sde,sdf,sdg & sdh.

(Output attached at end of the thread)

But in /proc/partitions, the device order is different.

You can see their respective sizes in /proc/partition output as well.

So, my question is, in this particular scenario, I can't relate the first entry of /proc/scsi/scsi with first entry of /proc/partition. i.e. scsi0:00:00:00 is not /dev/sde, because it is actually /dev/sda.

It seems that my assumption is wrong in this scenario.

Is there any way or mechanism to figure out actual device name for an entry in /proc/scsi/scsi in /dev/ directory?

How can my application should relate /proc/scsi/scsi entries with their respective device names and sizes?

View 2 Replies View Related

General :: Unable To Mount A Pen Drive (which Is Formatted In Ext2 Format) With Directory Permission?

Mar 27, 2010

i am not able to mount a pen drive (which is formatted in ext2 format) with directory permission drwxrwxrwx and file permission as -rw-rw-rw.

View 3 Replies View Related

Ubuntu :: Mount Single Directory To Multiple Mount Points

Jan 27, 2011

I have a requirement that seems to be unique in nature. I have multiple clients who are caged to their home directories. I would like to "share" a directory which exists above these chroots with all these caged users. I know this can be accomplished using mounts but my problem is, how can I mount a single directory to multiple mount points located in each users home dir? Can this be done in the fstab file?

View 9 Replies View Related

General :: Replicating A Directory To Another Directory?

May 13, 2010

I have a directory /sanvol/ifr/ which contains 90,000 files and 2 subdirectories containing 60,000 files. I need to copy the contents of /sanvol/ifr to /sanvol/edm/. The cp command will not work because there are too many files.

I tried the following: find /sanvol/ifr/ type f -name '*' -exec cp -p {} /sanvol/edm/. ;

but this copies all files including whats in the subdirectories to /sanvol/edm/

I need to replicate exactly the contents of /sanvol/ifr/ to /sanvol/edm/ and preserve file attributes and dates.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved