Tag Info

Hot answers tagged

28

Just to map a network share directory you would use this command: net use \\Server\ShareName\Directory This mapping would not be persistent and would have to be established and authenticated at user login, and you would access the share using the UNC path and not a local drive letter. If you want to access the network share through a location on your ...


13

Does anybody have any best practices for how to organise a folder structure? Don't. Believe me, you don't want to own the folder hierarchy for any department (except maybe your own). You don't know what their needs are, don't have the knowledge or experience of other departments to make good choices, and don't want to be the company's file janitor. ...


8

See http://www.ratsauce.co.uk/notablog/LongFilenames.asp JR PS for a folder use: rd /S \\?\C:\VeryLongFolderName


8

I was having the same issue, I was trying and failing to delete /usr/local/tomcat/data with the error rm: cannot remove/usr/local/tomcat/data': Device or resource busy` until I noticed that df -h said /dev/vda3 20G 172M 20G 1% /usr/local/tomcat/data that is, I had a partition mounted to that point. Mystery solved.


7

Try the following: Open CMD and CD into the location where the file is at Type dir /a /x /p which will show you the hidden files and the 8.3 filenames which usually look like: C:Progra~1 Since it is a folder you want to delete, run rd /s <8.3name>


6

du -hcs /home/*/ Or, for exactly what you want: for i in /home/*/; do user=${i#/*/} space=$(du -hs "$i" | cut -f1) echo "${user%/} = $space" done


6

find . -type d -perm 777 -exec chmod 755 {} \; (for changing the directory permission) find . -type f -perm 777 -exec chmod 644 {} \; (for changing the file permission) If they did not have 777 permissions, we easily remove the -perm 777 part.


6

Windows is a bit special when it comes to folder layout with kajillions of files. Especially images, since Windows Explorer treats them special. That said, there are a few guide-lines to follow to keep things from getting too out of hand: If you intend to browse the directory structure from Windows Explorer for any reason, keep it under 10,000 entries in a ...


5

First of all as House MD says "everybody lies". Logs, on the other hand, don't lie. If you see user A in logs, that means user A deleted the folder/file, or someone else had access to user A's credentials (or computer). And one more thing ... users like hitting buttons at random. I also had deleted files/folders on my NAS and noone took the "credit" for ...


5

This can be done by modifying the advanced security permissions of the folder and make sure that the users do not have the "Delete Subfolders and Files" and "Delete" permissions. The following rights should work: Traverse Folder/Execute File List Folder/Read Data Read Attributes Read Extended Attributes Create Files/Write Data Create Folders/Append Data ...


5

Substituting the single-character wildcard ? for the pipe character should work: del f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_?_Tsugaru_Shamisen


5

Can't be done... If they have admin rights on the computer, they can get access to what you're doing. You can do things with auditing that could tell you what's going on, but you can't completely stop them. Your best bet is encryption, but even that's not perfect, they could eavesdrop on your sessions, but that's less likely.


4

Generally I use \user \user\domain \user\domain\logs # Location of the webserver logs \user\domain\public # Publicly accessible directory If using a dynamic website, I often put the majority of the files within subfolders under \user\domain\ outside of the public directory.


4

Log into the domain admin. open setup Towards the bottom of the page check "Allow custom error messages" Of course you need some custome error message pages. Go to "File Manager" open the error_docs directory and hack away. You will see (barely) in the lowere right corner tabs for design and HTML. Just paste your code into the HTML field.


4

As far as permissions are concerned -- an administrator of one type or another (Local/Domain) can always 'take ownership' of files/folders so you cannot use this to secure your files. As other people have mentioned, encryption is the way to go...


4

Um, robocopy saves the configuration of a copy job to a file that you can recall later with a parameter. Is that sufficient by your definition of script? It was a download in XP/2003, and installed by default in Vista/7/2008 variants. There is also RichCopy, a GUI overlay to the aforementioned robocopy. It might even output the job file so you can run ...


4

In Windows Vista and 7 you can use NTFS symbolic link. Wikipedia states that "the NTFS symbolic link implementation provides full support for cross-filesystem links." If you're not comfortable using the command line program mklink, you can use Link Shell Extension. After downloading and installing the software, follow the step-by-step guide in "Using Link ...


4

No, you need to enable "Read" as well. And possible "Read & Execute", too, depending on the contents.


4

Use rsync, becasue scp is limited in many ways. To get you started here is an example: rsync genja.org:/home/www/*/html/ /tmp/dest/html/ -avin host: genja.lan receiving incremental file list created directory /tmp/dest/html cd+++++++++ ./ >f+++++++++ tabs.html cd+++++++++ borders/ cd+++++++++ borders/border-radius/ >f+++++++++ ...


4

Unfortunately both are very common. Most of the OpenSource software I've found uses Junk, and most of the Proprietary software seems to use Spam. New users may be accustomed to either... The only "solution" I've found is to use one or the other, and to do so very consistently. At home I use RoundCube as well, and I standardized on "Junk" long before. If I ...


3

I manage to resolve this by adding every domain account twice into the shared folder. One without delete permissions applied to the folders and subfolders, and one with delete permissions applied only to files!


3

You can install the XP Powertoy, or just add this to your registry Create these 2 keys: HKCR\Directory\shell\Open Command Prompt Here HKCR\Directory\shell\Open Command Prompt Here\command then set the default value for the \command key to cmd.exe /k "cd %L" You can replace "Open Command Prompt Here" with whatever you want the right-click context menu ...


3

Honestly, use whatever works best for you. Pick a system and stick with it, document it, and make sure that everyone who would ever need to make changes is aware of it and why it is important to stick with the standard. Edited to include our standard folder structure (for www.example.com): [drive]:\Inetpub\wwwroot\example.com\docs We use a 'docs' folder ...


3

This use case is exactly what WebDAV excels at. I'd recommend going that way unless you want the added complexity of a proper Document management system (Alfresco, Sharepoint, etc.).


3

Wow... that's pretty bad... The best thing you can do now is back up your personal data and reinstall your system. Since that's probably not what you wanted to hear, the second best (and probably substantially more painful) thing to do is something like: for package in `dpkg -l | awk '{print $2}'`; do apt-get install --reinstall $package done Note ...


3

Each file or folder has a user owner, and a group owner. Doing ls -l on a file will show who the current owners are. The "owner" is some user from /etc/passwd, the group is some group from /etc/groups and other represents everything else. The three digits in the permission number represent the permissions for the user, group and "other". So 755 means: ...


3

If you could redirect people to localised subdomains after the fact, this would work: RewriteEngine on RewriteRule ^/th(.*)$ http://th.example.com$1 [R,L] RewriteRule ^/en(.*)$ http://en.example.com$1 [R,L] Unfortunately, given that you're running off a single hostname that means you're limited to things in DNS (GeoIP), and can't deal with anything in the ...


3

This is perhaps a bit of a hit and miss approach, but consider using a geolocation aware DNS server - one suggestion is GeoIPDNS a drop-in replacement fork of TinyDNS. The idea would be that you host an authoritative name server on your machine, and based on the IP it would automatically redirect users to one server or the other. The user's machine should ...


3

You can use lsof or fuser to indentify which is using this directory, something like this: # lsof +D /var/www/html



Only top voted, non community-wiki answers of a minimum length are eligible