CentOS 5 Networking :: Allow The User Only See The Size Of The File, And Not The File + Symbolic Links?
Feb 23, 2009
I'm researching about symbolic links been used with samba / CIFS:I'd like that the user that uses a MS-Windows OS could see my shared folder on CentOS 5 and the symbolic links that are inside this folder. Well, it works but, the user will see that the size of the file is bigger than the real file. Apparently, CIFS gets the size of the symbolic link (aproxim.32K) and add it to the size of the file.Example 1: 100KB file, used with shared folder, MS-Windows's user will see 100KBExample 2: 100KB file, used with symbolic link inside a shared folder, MS-Windows's user will see 132KB. (Sym link + size of file)Is there a way to allow the user only see the size of the file, and not the file + symbolic links ?
View 1 Replies
ADVERTISEMENT
Jan 7, 2011
I have been using a cron job to duplicate a folder into another users account every day and someone suggested using symbolic links instead although I cannot get them to work. In summary user GAMER generates log files that they want to access via HTTP, however I only have a web-server in the user account SERVER, in the past I would copy the logs folder from GAMERS account into SERVER/public_html/. and then chmod the files so the server could access them. Trying to use symbolic links I set up a link from root (as only root can access both accounts) I used: ln -s /home/GAMER/game/logs/ /home/SERVER/public_html/logs
However it seems that only root can use this link, I tried chmoding the link, all the files in the gamers /game/logs/*, /game/logs itself to 777 as well as changing chown and chgrp to server the files still cannot be read. When viewed from servers account my shell shows the link and where it is to hi-lighted in black with red text. /home/GAMER/game/ (chmod & chgrp) drwxrwxrwx 3 SERVER SERVER 4096 2011-01-07 15:46 logs
/home/SERVER/public_html (chmod -h & chgrp -h)
View 1 Replies
View Related
Jun 13, 2011
I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
View 3 Replies
View Related
Oct 19, 2010
I have a Samba share that contains a symbolic link and when I try accessing it from the WinXP machine it denies permission. If I access it from the Linux account, it goes in with no problems. Is there a certain setting that needs to be set or enabled or is this just one of those things with Samba?
View 5 Replies
View Related
Jan 10, 2011
I've created two samba shares, /media/disk1 and /media/disk2 say the structure is like this:
/media/disk1/dir1
/media/disk1/dir2 links to /media/disk1/dir1
/media/disk2/dir1 links to /media/disk1/dir1
so I can access /media/disk1/dir1 and /media/disk1/dir2 from samba share, but I cannot access /media/disk2/dir1, on Windows 7 it throws:
Quote:
[Window Title]
Location is not available
[Content]
N:dir1 is not accessible.
Access is denied.
[OK]
In conclusion, symbolic inside the same drive is okay, but when cross-drive links happened, I cannot access them..
View 2 Replies
View Related
Jan 21, 2011
i want to Restrict a particular user from creating a file beyond a prticular size.ie he should not be able to create a prticular size [say 10mb] but he can use upto 10 gb.[ not the quota space i mean]
View 6 Replies
View Related
Apr 8, 2011
My hosting server is running Linux / Apache. It would be very nice to be able to link some files (preferably hard links, but symbolic links also would help), but haven't a clue how to do so. I would be willing to write a server side php script if that would do the trick.
View 4 Replies
View Related
Jun 10, 2010
Are there software that can split big file size into small file size in Linux?
View 1 Replies
View Related
May 16, 2011
Last weekend i have increased the open file size (ulimit -n) for the application user id i have update the limits.conf file with necessary inputs restarted the service and the server as well, when i check the ulimit value for the specific user by switching user from other user it shows the new value (10240) but if i login directly using the application id the ulimit value shows as 1024 which one is the default one.
View 6 Replies
View Related
Apr 7, 2011
How big should an LVM volume be to hold a single 32GB file? I thought 33GB would be enough, but apparently not. A volume has run out of space. There are 2 identical volumes holding identical sized files (kvm virtual hard drives in raw format). One (ic030) is showing zero free space and one is showing 97% full. I guess the discrepancy is caused by journalling, directory structure information etc. Possibly also sparseness. How do I calculate the worst-case maximum required LVM volume size? i.e. assuming no sprseness and maximum journal size etc. Here's some info from the file system. (I have removed other volumes form the listings.) The volumes are formatted with ext3.
[Code]....
View 5 Replies
View Related
May 7, 2010
I have directory that contains some symbolic links:
user@host:include$ find .. -type l -ls
4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include
4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux
[code]....
View 5 Replies
View Related
Jul 10, 2010
I am trying to set up scripts to execute Luckybackup and make them easily available to all users of the computer. Following the recommendation of the web site (http://ubuntu-tutorials.com/2006/12/...-all-versions/) I tried to set up a folder (/usr/local/myprograms/luckybackup_scripts) containing the scripts, and to put symlinks pointing to the scripts in /usr/lock/bin.
The object of this design was to have my local programs clearly separate from any other programs, and to point to them with symlinks in /usr/local/bin. is because /usr/local/bin is automatically searched when a terminal command is issued so the user need not specify the whole path to the script.The problem that I ran into was that the system would not let me create symlinks to scripts in /usr/local/myprograms/luchybackup_scripts. While ths symlink was created, it was invalid and did point to any target. The only symlinks that I could create had to be in the same folder as the target, namely /usr/local/myprograms/luckybackup_scripts. I tried to create the links using Terminal and "sudo ln -s
View 4 Replies
View Related
Mar 16, 2011
I know how to make symbolic links on the same or between two different partitions. But is it possible to make symbolic links between two different servers, that are on the same lan?
View 9 Replies
View Related
Oct 9, 2010
I have a linux server, and use symbolic links a fair amount. I'm also merging some of my php code
library to another location.
My question is, is there any way to get a list of symbolic links that point to a specific directory which I am going to be moving? that way I can manually go through them and re-point to the new location of the physical folder.
View 2 Replies
View Related
Mar 2, 2011
Just wondering what the command is to archive data plus symbolic links in tar. We need to be able to recreate symbolic links as the file is laid back to original location(s).
View 2 Replies
View Related
Feb 24, 2011
what exactly does the following symbolic link mean?"target ->/path/to/./usr/bin/example"I am a bit confused on the "." portion of it.
View 1 Replies
View Related
Apr 19, 2011
I am trying to figure out the actual size of files and directories on a CentOS Linux 5 server and when I do a ls -l I see for example at the Directory of /Data 4096 but once in side the directory and I do a ls -l I see larger file sizes. How do I get the actual file size of a Directory to show up?
View 3 Replies
View Related
Jun 28, 2011
Is there an easy way to replace all symbolic links with the file they link to?
View 4 Replies
View Related
Nov 14, 2010
I am having trouble with virtual hosts. The system is not recognizing their existence. In the process of trying to determine the problem (when I do a command of "ls -l" for the sites enabled folder) I noticed that the new symbolic links for the two sites in question show the directories and files linked to in green. The one link that does work (the default link set up with the system install) is in white.
Is there any significance attached to the colors? I would think they should be the same as the working one.
[IMG]file:///tmp/moz-screenshot-1.png[/IMG][IMG]file:///tmp/moz-screenshot-2.png[/IMG]
View 1 Replies
View Related
Mar 27, 2011
copy all symlinks
i want to copy all symlinks (both active and dead) from one partition's os's user's home directory, to another partition's os's user's home directory, and i'm wondering if this can be accomplished with some clever bash options and pipes after "cp".
this is very useful for users with multiboot systems, who keep all their data on a separate drive. this would allow the symlink'ed shortcut tree directory hierarchy expedience, to be instantly copyable to any of their oses.
distro-hoppers/surfers will love it. ^_^
so here goes my first attempt at trying to work out what it'd be...
cp -P
(copy, dont follow symbolic links)
(or is it -d i aught use?)
find /% -type l
(finds symbolic links only
[Code]....
View 5 Replies
View Related
Feb 20, 2011
Is it possible to change permissions on symbolic links using the c programming language or any other for that matter? Now, I know what you are thinking, so let me provide some background.I know permission are meaningless. I know that typically permissions are set to 777.The project that I am working on does the following. On HPUX systems, a c binary recreates missing links from a stored image of the filesystem, if they are missing. The problem is that the permissions are 700 when the links are restored (should be 777). The c method to restore the symbolic links is "symlink()" which takes as its argument the target and linkname.The client wants 777 on the links. I do not know why the permissions are different. I would like to know if I can change permissions on the link by code, changing the mode?
Is this a bug somewhere in HPUX 10,x and 11.x os or "symlink" c library method, who knows?There are groups of nodes running HPUX, for example groupA, groupB etc.The problems appears in groupA but not in groupB. Seems the nodes are configured differently.While I would love to know if this is a configuration issue, it appears that way to me, there would be little I could do about it. Politics you know, but that's okay, in time someone would listen.
View 3 Replies
View Related
Aug 15, 2011
Having alot of trouble searching for answers as it just pulls up irrelivnent info.I have 2 HDD's id like to show as one virtual disk or mount them both to one folder, but without raid so if i dies the other will be ok. Is this something i can achieve with symbolic links or JBOD raids? or other options ^_^
View 1 Replies
View Related
Jun 28, 2010
I have a web app that has a bunch of symbolic links in subdirectories throughout it.I need to move the app to another directory structure, and I need to update all the symlinks to point to the new path.The problem is that there's a lot of these scattered throughout various directories.How can I recursively search from the root and recreate all symlinks pointing to /dev/ with /qa/?
View 3 Replies
View Related
Apr 6, 2010
If you have some directories shared that contain symbolic links that are NOT being resolved by the client machine, try adding these lines to your /etc/samba/smb.conf file:
Code:
[global]
follow symlinks = yes
wide symlinks = yes
unix extensions = no
View 5 Replies
View Related
Jul 4, 2010
Does anyone know how to get an applications launcher to follow a symbolic link. I got it to work using the absolute path name to the executable, but the other doesn't seem to work.
View 3 Replies
View Related
Apr 13, 2011
I have samba set up, and I can log in, etc. However, whenever I try to access a symbolic link, windows tells me that "windows cannot access [directory name]".
I have this under global, but it doesn't seem to help:
Quote:
follow symlinks = yes
wide symlinks = yes
unix extensions = no
The permissions of the target directories are open.
View 3 Replies
View Related
Jun 7, 2010
However, can I run a command and create symbolic links for all files in a given folder and its subfolders and have all the links be in one folder?
I have a file structure such as:
FolderA
FolderB
FolderC
and I want to have symbolic links for all the files in the A, B, and C all in one new folder (FolderALL) for example. I have hundreds of folders that need to be done, so a simple 1 line command would be ideal if possible.
View 13 Replies
View Related
May 10, 2010
I'm running slackware64-current and have no problems building packages from .SlackBuild scripts except for GCC. When I build the package there are no errors but I get a message saying - "No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like." The created package contains only directories - Creating Slackware package: /tmp/gcc-objc-4.4.3-x86_64-2.txz
[Code]...
View 6 Replies
View Related
Jul 26, 2009
I have a CentOS5 server with a 1tb hard drive.There is only 80gb of data on that huge drive and now I want to make a bare metal recovery backup using AcronisMy question is, how can I estimate the amount of time the backup will take and the size of the image file? Is it based on the size of my drive or is it based on the amount of data on the drive?
View 1 Replies
View Related
Mar 14, 2010
I just upgraded samba on my lenny-server:
apt-cache policy samba
samba:
Installed: 2:3.4.7~dfsg-1~bpo50+1
...and since then my windows xp clients cannot follow a symbolic link to a common area from their home folders.
I have googled and tried to add follow symlinks and wide links to my homes share
[homes]
= Home Directories
browseable = no
follow symlinks = yes
wide links = yes
...but after restarting samba on the server and rebooting the windows machine the user still cannot follow the link.
View 3 Replies
View Related