Fedora Servers :: Make An Entry In /etc/exports To Export A Directory?

Mar 13, 2009

Is there an easy to make an entry in /etc/exports to export a directory for every entry in /etc/hosts?

View 2 Replies


General :: 3. Etc/exports Entry Would Export A Directory Named /nfs To All Clients On The?

Jan 22, 2011

3.What /etc/exports entry would export a directory named /nfs to all clients on the subnet and give them read-only access?

View 3 Replies View Related

OpenSUSE Network :: NFSv4 Oddity On 4 Servers - Directory Export?

Jan 27, 2011

I'm running OpenSuSE 11.3 (64 bit) with the latest kernel update as of yesterday. I've recently moved from NFSv3 to NFSv4 on 4 servers. Between the 4 servers there are 9 exported directories. All of them work except 1 on 1 of the 4 servers.

# NFSv4 fsid=0 for the top level directory
/export *(rw,fsid=0,async,no_subtree_check,insecure)
# End

# NFSv3
/export/apps/oracle *(rw,async,fsid=7,no_subtree_check,insecure)
/export/ftpserver *(rw,async,fsid=6,no_subtree_check,insecure)
# End

I had to keep the NFSv3 entry as I need that as the mount doesn't work with v4.
/export directory listing
total 5
drwxr-xr-x 4 root root 104 2002-08-08 16:47 .
drwxr-xr-x 33 root root 944 2011-01-25 17:28 ..
drwxr-xr-x 10 root root 232 2010-01-26 10:01 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver

total 0
drwxr-xr-x 10 root root 232 2010-01-26 10:01 .
drwxr-xr-x 4 root root 104 2002-08-08 16:47 ..
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr

Now on any of the 4 servers if I do:
# mount -t nfs4 machinename:/apps/oracle /mnt
mount.nfs4: mounting lister:/apps/oracle failed, reason given by server:
No such file or directory

But the other sub-dir of /export is fine:
# mount -t nfs4 machinename:/apps/ftpserver /mnt

If I mount the pseudo root:
# mount -t nfs4 machinename:/ /mnt
# ls -l /mnt
total 4
drwxr-xr-x 2 root root 48 2002-08-08 15:20 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver

But the apps sub-dir is empty
# ls -l /mnt/apps
total 0

On the server:
# ls -l /export/apps
total 0
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr

Well that explains why the NFSv4 mount of /apps/oracle fails because for some reason it can't "see" any files below that, but as I say the ftpserver sub-dir & mount are fine.

View 9 Replies View Related

Server :: NFS Exports Do Not Show Up In /proc/fs/nfs/exports?

Sep 6, 2010

I installed Debian on my NAS and I installed nfs to share the files, but I cannot mount anything over nfs with the it. it seems that I dont get the exports right.I added the IP to the hosts.allow, I added it to the exports.to make it easier, shananigen has the IP and is the serverdebian has the IP and is the clientis there a problem if I go across subnets?anyway, here we go

shananigen:/etc# cat exports


View 3 Replies View Related

Server :: Bad Entry In Directory Unaligned Directory Entry?

Apr 1, 2011

I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177

View 4 Replies View Related

Ubuntu Servers :: Nfs & Dnsmasq - Cannot Mount The Exports On Clients

Jun 4, 2010

On a Lucid server, dnsmasq is happily running DHCP together with a local DNS; although, in setting up NFS, I seem to have a small problem... I have /etc/exports referencing the hostname of the clients but these IPs change when the DHCP lease is renewed. Unless I restart NFS or run exportfs, I cannot mount the exports on my clients. I know that it would be good to make the all the addresses static; however, I was wondering whether there is another way to configure NFS such as possibly adding in a script to continually monitor /var/lib/misc/dnsmasq.leases and re-export accordingly?

View 3 Replies View Related

Red Hat / Fedora :: Make Entry In MBR Of Grub

Jan 18, 2011

I installed centos 5 in my PC. When it come to boot loader section I choose another partition (boot) not master boot record. After installing successfully when I restart my PC it is not showing grub it is going stright away to windows. I have also installed window xp. How to add grub entry in mbr.

View 3 Replies View Related

Fedora Servers :: Samba Export HD Shows Less Capacity In Windows?

Oct 6, 2010

I use Fedora 11, and have an external HD (USB) which has 4 partitions of 500GB each.

/dev/sdb1 is an NTFS partition that is exported to my windows machine using samba.

However, only 75GB is visible in windows (via rt.click properties).

Anyways, below is output from fdisk -l. why does windows see only 75GB of a partition that is 500GB in linux?

fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ac734


View 3 Replies View Related

Fedora Servers :: See Messages In Logwatch Report Then Cannot Find The Actual Log Entry?

Jan 23, 2010

I occasionally see messages in my logwatch report then cannot find the actual log entry. Is there any way I can have logwatch give a clearer report?an example:

Unknown Entries:
authentication failure; logname= uid=0 euid=0 tty=ftp ruser=a-specific-user


View 2 Replies View Related

Ubuntu :: Export PATH To Adb Directory Through Bashrc?

Feb 25, 2011

I,m having a rough time getting the terminal environment to recognize my android debug bridge path (which is set in a separate hdd) I used to paste this in my bashrc, but then found that it would make the env system bonkers whenever i attempted sudoing with an option:

# Android Debug Bridge (ADB) sdk path
alias sudo='sudo env PATH=$PATH'
export PATH=${PATH}:/media/Disk/Linux/Android/sdk/platform-tools/
The "alias" line was the one making me have a rough time with env.
Now that i got rid of it everything is well but adb's path isn't exported anymore.


View 3 Replies View Related

Ubuntu Servers :: Make Apache Show Symbolic Links In A Directory Listing?

Jul 17, 2011

I am trying to make my Apache server show symbolic links in a directory listing, but have so far been unsuccessful. In my latest attempt, I have placed the following code in .htaccess, in the directory with the symlinks that I want listing:

<Directory />
Options All
Im httpd-vhosts.conf, I have also placed the following code within the relative <VirtualHost></VirtualHost>:

View 5 Replies View Related

Server :: NFS Export Mounts On Client But Normal Users Can't Get Into The Directory

Jul 1, 2010

I have set up an NFS server on Fedora 13, and I am connecting to it with Fedora 13 and Ubuntu 10.

On both clients the command


works fine. On Fedora I can get into the directory with Nautilus and have read/write permissions as specified in /etc/exports on the server, but on Ubuntu I can only get into it from a sudo'd command line.

The ownership of the file on Fedora is "nobody" and on Ubuntu it's "user #500", with only people in the "500" group having access to it.

Obviously the permissions can't be changed on the client, but with the Fedora box being able to read/write to it with no problems I'm not sure what else I can do on the server to let normal users on the Ubuntu box read it.

View 1 Replies View Related

Programming :: Scaling Of Directory Entry Lookup?

Feb 28, 2011

I need to create and access a very large number of directories (and by large I mean millions). Each directory's name consists only of numbers, which are incremented every time a new directory is created (so there will be directory 1, 2, and so on).Of course I could just dump all these directories under the same parent directory, but I reckon I would run into filesystem limits. Moreover, I presume that entry lookup is not a O(1) operation, which means that lookup does not scale well.

One solution is to use some sort of prefix tree for storing the data. In this scheme, the data for directory "1234" would actually be stored in "/1/2/3/4".This solution has the advantage that each subtree never has more than 10 entries, but the disadvantage of requiring as many individual lookups as the length of the path.There are also intermediate solutions: using a maximum of 100 entries per directory, "1234" would become "/12/34", per example.In order to choose the best scheme, I must know more about the scalability of directory lookup under Linux. What's the maximum reasonable number of entries for a directory before lookup becomes too slow? Does someone know exactly what are the limitations of the algorithm used for directory lookup?

View 1 Replies View Related

Ubuntu Security :: Seahorse Export Menu Is Always Disabled - Export The Passwords To Restore It After Formatting Machine?

Jun 12, 2010

seahorse export menu is always disabled. I need to export the passwords to restore it after formatting my machine.

View 1 Replies View Related

General :: Making A Directory Entry Pointing To (file+offset)

May 5, 2010

The *.dbf files (DBase III Plus files) have a header (metadata) and follow with n fixed records. I'd like to make a directory entry (like a symbolic link) that point to the fixed record area into a .dbf file. Is it possible in linux? The request is motivated by access a .dbf file from a Firebird SQL Database using CREATE TABLE EXTERNAL FILE '/tmp/mydbf.dbf' ( ... ); but this command only works on fixed records.

View 1 Replies View Related

OpenSUSE :: Cron (Cannot Make / Remove Entry For PAM Session)

Jun 28, 2011

I run a virtual server with a standard minimal openSUSE 11.4 installation (Strato image) and all recent updates installed.
$ uname -a
Linux servername 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 i686 athlon i386 GNU/Linux

A few days into running the server I found that although /usr/sbin/cron was running it didn't execute the cron scripts. Instead, I find this:

$ tail -n 3 /var/log/messages
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) repeated every 20 minutes.

I have this:
$ cat /etc/pam.d/crond
# The PAM configuration file for the cron daemon
# No PAM authentication called, auth modules not needed
auth sufficient pam_rootok.so
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet
auth include common-auth
account include common-account
password include common-password

As per the standard installation and /etc/cron.allow doesn't exist (I tested if it made a difference if it existed with the single line root in it, but there was no effect). I need cron to execute because I want zypper to auto-update my server. On my home openSUSE 11.4 installation the problem doesn't exist. Is it perhaps related to the settings in the yast security center?

View 9 Replies View Related

Ubuntu :: Cron Entry - Doesn't Seem To Be Running - Don't See Any File Gets Written To The Log Directory

Oct 4, 2010

I have the following cron entry but it doesn't seem to be running:


The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:


I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.

View 9 Replies View Related

Ubuntu Servers :: Exportfs: Warning: /path/to/dir Does Not Support NFS Export?

Jul 8, 2010

exportfs outputs the following error upon restart or after editing /etc/exports.

'exportfs: Warning: /exports does not support NFS export.'
here is my info and configs.


View 6 Replies View Related

Ubuntu Servers :: Export Normal Unix Users To Ldap User?

Jul 1, 2010

how to export normal unix user to ldap I've unbuntu ldap server with some local users. I want to export all my local users to ldap database as a ldap users. Or if there is any configuration so that when ever a normal user is created then automatically an ldap user with the same name as the normal user will be created

View 5 Replies View Related

Ubuntu Servers :: Unable To Export An X Display Back To Desktop To Run The Oracle Installer?

Aug 17, 2010

I'm new to Ubuntu and I'm remote from the server. I'm setting up an Ubuntu server 10.04 x64. My intention is to load Oracle 11g, however I know I will need to be able to export an X display back to my desktop (Solaris) to run the Oracle installer. What do I need to load to get X working enough to export the display back to myself. I need to provide additional information. Since I'm new I may not have adequately covered what's needed.

View 4 Replies View Related

Fedora :: Make Mkdir Silently Overwrite Any Existent Directory?

Feb 19, 2010

I am working on a bash script which among its operations creates directories using the mkdir command. However, when the directory already exists mkdir mentions that in the command line output.

Is there any way I can make mkdir silently overwrite any existent directory? (no messages in the output). For the same price, could it be done with other commands such as cp or mv?

View 3 Replies View Related

Ubuntu Servers :: Postfix Make Install - Error - Postfix: Fatal: Chdir(/usr/libexec/postfix): No Such File Or Directory

Mar 11, 2010

Here is what i do: make clean make makefiles CCARGS='-DEF_CONFIG_DIR="/opt/product/postfix-2.6.5/etc"


make install then i got this error: postfix: fatal: chdir(/usr/libexec/postfix): No such file or directory make: *** [install] Error 1 I don't understand why it's checking the usr/libexec folder for the daemons although I've set the folder to /opt/product/postfix-2.6.5/libexec in the makefile. Here is also the cat of my makedefs.out:


View 1 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

Ubuntu Servers :: How To Remove Entry From Grub

Dec 20, 2010

I need to remove an entry from my grub boot loader does anyone have a simple way to do this?

View 6 Replies View Related

OpenSUSE Network :: Nfs And /etc/exports - Excluding Certain Subdirectories

Jun 30, 2011

I have a nfs share on my 11.4 workstation at /abcd. I'd like to export everything under /abcd except for one directory /abcd/dontexport

I searched online for such an option but only came across noaccess option which doesn't seem to work.

exportfs says it is an unrecognized option if I run "exportfs -ra"

This is how my /etc/exports looks like:


View 2 Replies View Related

Networking :: Can't Mount Exports Folders From Client?

Jul 16, 2010

I am working on a NFS server embedded on a PowerPC plateform (4650EX, 512Ram, 1 GB Ethernet) but i can't mount my exports folders from my client. Here are messages :-- server side :

$ tail /var/log/message
Dec 11 23:35:45 canyonlands mountd[1345]: authenticated mount request from for /mnt/ssd (/mnt/ssd)


View 6 Replies View Related

Ubuntu :: Make Directory Point To Other Directory

Jan 24, 2010

I have a partition for all my data (mounted on /mnt/data) and I want to point my /home/<username>/Pictures folder to /mnt/data/Pictures. I.e. I want to point a folder to another folder.This isn't possible with fstab as I've understood, since that's about mounting volumes. I guess the mount command can be used, but I'd like to mount the directory permanently and I'm not aware of if that's possible with the mount command. Maybe a soft link can be a solution, but that doesn't feel like a "clean" solution. Then I have to enter the /home/<username>/Pictures directory and then click the soft link?

View 5 Replies View Related

Fedora Servers :: Document Root Must Be A Directory

Jul 30, 2009

I am trying to get apache to start at boot in Fedora 10 but I am getting "Document root must be a directory", I tried to change the Selinux settings with:
chcon -R -h -t httpd_sys_content_t /www

I checked the new settings with ls -aZ and the changes apear to be fine.
apache apache unconfined_u:object_r:httpd_sys_content_t:s0
But I still get the same message on my boot.log file.

View 9 Replies View Related

Fedora Servers :: Make A Server With No GPU?

Apr 5, 2009

I just recently made a server using Fedora 10 and i was wondering if it is possible to set it up so that i don't need a GPU for fedora to boot properly. Since the GPU isn't being used i was hoping to save on a little bit more electricity.

View 4 Replies View Related

Fedora Servers :: Can't Make Public_html?

Sep 10, 2009

I've just set up apache and can't make public_html dir to work. I followed this tutorial:http://fedoraphprails.blogspot.com/2...user-home.htmlAnd I'm still getting:Quote:orbiddenYou don't have permission to access /~gal/ on this server.Apache/2.2.13 (Fedora) Server at localhost Port 80

View 2 Replies View Related

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