General :: Delete Protected Directory In Samba?

Dec 20, 2010

How to create a directory in samba share in which user can write read files but neither can create more directories tree nor delete any directory.

suppose
[Share]
comment = NRshare
path = /home/share
browseable = yes

[Code].....

I know user cannot delete share directory here. But user can create any number of directories of files in share.

I would like to create directories in share which cannot be added or deleted.

View 2 Replies


ADVERTISEMENT

General :: Delete Protected Windows Executable Files Via System?

Oct 26, 2009

I use Ubuntu 9.04 exclusively on my own machines, but I have a couple of flash drives that got infected by some corrupt windows executable (*.exe) files, probably by somebody's trojan (they are Cruzer 4GB so came with installed fancy programs that I dont need but didnt remove and Windows keeps installing unwanted ini files and other trash every time I use them in somebody elses machine or in an internet cafe). I deleted quite a few files, but some are stubborn.
$ sudo chmod +w-X doesnt seem to work. How do I unprotect and remove them? The filesystem is vFAT.

I suspect the files were created by some kind of a trojan as my work requires my flash to be pretty promiscuous.
When I 've backed up all the good files I need, I'd be happy to reformat the flash drives as straight vanilla data storage and retrieval, provided I can still use them on a variety of machines running MS windows as well as on my Linux machines. Any guidance on reformatting?

View 2 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

Fedora :: How To Delete A Root Protected File

Nov 22, 2010

Sorry to sound like a newbie dope but I somehow extracted a folder to the desktop and can't delete it because it says I don't have permission to read it. How can I delete this folder?

View 4 Replies View Related

Ubuntu Servers :: MAC OsX Client Cannot Mount Samba Protected Share?

Jan 12, 2010

I recently set up a Samba server (Ubuntu 8.10 desktop) in a Social Businness Office. in there have different laptops and OS.

Here is how my smb.conf file look in the share section.

[private folder]
path = /path/to/private
comment = private
valid users = user1 user2
directory mask = 0777

[Code]....

It work fine for Win and Ubuntu, but access this folder with Mac OsX gives this error:

smb_mount: open session failed!: syserr = Broken pipe

It seems that authentication is ok, but for some reason it cannot mount the device.

I know this is not the right place to talk about OsX issues.

I would like to exclude if there are some options I miss in the smb.conf.

View 4 Replies View Related

General :: Delete Multiple Users From Samba?

Jan 25, 2011

i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.

View 1 Replies View Related

Red Hat / Fedora :: Password Protected Ftp Directory Along With Anonomus User Access

Apr 7, 2011

Is it possible to have a password protected ftp directory along with anonomus user access

i mean 2 say
when people visit my ftp link ie
ftp//server name
then can see all the directories like
text
stickers
word files
personal

They can acess all the directories and can see contents but when they go to my personal directory they should be prompted for a password.

View 9 Replies View Related

Security :: Create A Password Protected Directory In USB Disk Drive?

Feb 23, 2011

I use ubuntu 10.04 as my OS. Im in the look for a good and simple application in order to password protect a folder or two on my portable hard drive. I really dont need high levels of encryptions but I wouldnt mind if the usage is not so complicated.

View 5 Replies View Related

General :: Samba Share Can't Delete Files From Window Machine?

Jun 21, 2011

we have a sambe share from our window pc, we cant delete or cut/paste file however creation of new file r possible, where we give full permission.

the samba username is premiaadmin, where all permission given like root see below

[root@tmsrvr2 ~]# service smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@tmsrvr2 ~]# setfacl -m uremiaadmin:rwx /premia

[Code].....

View 3 Replies View Related

General :: Delete The Parent Directory With Rm -rf?

May 15, 2011

I have a FAT32 SD card with a file on it, that, viewed in Windows the filename consists of a long string of nonsense. Viewed in my Android phone's Linux terminal, ls -a shows nothing in the directory. When I try to delete the parent directory with rm -rf deleteme, it fails with "Directory not empty". When I try to delete/move in Windows 7, it says the filename would be too long and/or Explorer crashes. Windows disk check doesn't find anything wrong. How can I delete this?

View 2 Replies View Related

General :: Delete Files In A Directory - RM?

Jun 17, 2010

I have a USB drive that I boot using SysLinux. I think select one of several options to complete a task. I do not have access to edit those Kernels. I need to add a option from the Syslinux menu where I can delete all the files from a specific directory.

View 3 Replies View Related

Programming :: Displaying The Contents Of Buffers In A Protected And Non-protected Critical Section?

Nov 19, 2010

I have this project for my operating systems class and I have put together the basic flow chart to aid me in writing the program. I know how to use pipes as a buffer to hold info. I know how to create a binary semaphore. But what I dont know is this:

How to "use a delay adjustment parameter K in the critical section to adjust the speed of the display process to show that without semaphore protection the displayed contents of the buffer are randomly interleaved."

First off, I am definitely not asking anyone to give me the solution. But I do need some guidance. So I figure there will be an if statement with two options:

1. If true, use semaphore protection to enter/exit critical section

2. If false, no semaphore protection -- this is where the contents of the buffer should be interleaved.

Now does that mean that as each child process enters the non-protected critical section, it should "sleep" for a randomized time? I mean, will this allow my output to be interleaved?

So lets say my command line looks like this:

what happens to the 100? Is it randomized using rand and srand and passed as a parameter to sleep() inside the critcal section?

View 5 Replies View Related

General :: Can I Delete Files Created By Others In A Directory I Own

Jul 23, 2010

I created a directory somewhere with permissions rwxrwxr-x so that other users in my group can create files and directories in it.

I do need to be able to delete the contents in this "public" directory, but it seems that while I am able to remove any files in this directory I cannot remove and subdirectories under it.

Is there a way to remove such subdirectories owned by others under a directory owned by me?

View 3 Replies View Related

General :: How To Delete All Files In Directory Without Deleting?

Feb 9, 2010

I know that rm -i will prompt wether you want to delete each file.But rm -i -r will prompt for each file in each subdirectory recursively. How to make it prompt just for the directory itself, and then delete its contents without asking?How to delete all the files in a directory without deleting . and ..?How to recursively delete all tilde files in a directory?How to GUI file managers delete files to Trash? Where is this "Trash" located? Can you delete to trash in the command line?

View 14 Replies View Related

General :: Delete All Files In A Directory Except The 7 Latest Ones?

Dec 4, 2010

Here is how i am isolating the 7 latest files

Code:
ls -ltr | tail -7

is there a way to give that negated list to the rm command? or should i be using the find command with an exec {}?

View 14 Replies View Related

General :: Rm Non-interactive Command - Delete A Directory With Its Files

Sep 28, 2010

I wanna delete a directory with its files and I wanna do that as follows: rm -r dirToDelete Unfortunately, I always get asked for EACH single file if I wanna delete this because it is write protected.... Is there a way to suppress this feedback message so that just the whole directory with its contents disappears?

View 5 Replies View Related

General :: Delete A Line With Certain Format From Files In A Directory?

Sep 21, 2010

I need a PHP script to delete a line with certain pattern from all filesin a directory. The Directory contain files with extensions .js,.html and.php. Do any body give a working code snippet to Read all files in a directory with above extension and delete that line from the files.

View 1 Replies View Related

General :: Script To Compress A Directory And Then Delete Older Than 7 Days

Feb 3, 2010

I have been trying to write a script that will take a directory, for example /accounts compress it into a .tar file with the filename containing the date of compression, for example accounts030210.tar and then place that file into a directory called /archive

I also want the script to delete files in /archive that are older than 7 days.

View 3 Replies View Related

General :: Delete Oldest Directory And File Using Ncftp Commands?

Aug 17, 2010

i use ncftp for some bash script action. how to delete oldest directory and oldest file using ncftp commands?

View 3 Replies View Related

Ubuntu :: Server Directory Can't Delete Directory / Fix This?

Jul 9, 2011

Ubuntu server recently had issues with a disk. fsck seemed to correct everything, but I have one directory that I can't delete, chown, chgrp, chmod, etc.

Here's the listing for the directory
dr-x-wxrwt 2 16709 25134 8192 2020-08-23 22:34 UDLEDATB.DBF

Note the sticky bit is set and the uid is a number that does not appear in /etc/passwd.

Even as root, any attempt to delete, chmod, chown, etc. gives "Operation not permitted".

Since sticky bit on a directory restricts delete to the owner and the owner is invalid, I am stuck. I need to delete this directory.

How can I fix this?

View 4 Replies View Related

Server :: Log User Samba Who Delete Or Move Files/folders On Samba Server ?

Feb 8, 2010

I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.

View 1 Replies View Related

General :: Spool Directory Samba Has Been Shared As Printer

Oct 2, 2009

In my samba configuration, I have a strange share.
Share name: MyPrinter
Shared folder: /var/spool/samba
comment = lp
read only = No
print ok = Yes
The spool directory /var/spool/samba has been shared as a printer. What will be the harm caused by it? (I don't know who shared such). And I also wanted to know the security issue due to it..

View 1 Replies View Related

Ubuntu Servers :: Using Apt For Updating From A Local Directory And Samba Shared Directory

Jul 9, 2010

I want to update all the machines in the network from a central repository which is on my master server and whose archive directory is shared through samba.I searched in the man page of sources.list and found that there is an option for this but can't able to implement this. Can anybody kindly tell me the way to do the same.

View 1 Replies View Related

General :: 'su ' Error "No Such File Or Directory I Cannot Delete That Entry From /etc/passwd As I Cannot Login As Root"

May 15, 2010

[Code]....

Password: su: /bin/bash:/sbin: No such file or directory i cannot delete that entry from /etc/passwd as i cannot login as root.

View 11 Replies View Related

Ubuntu :: Cannot Delete Song From Rhythmbox Over Samba Share

Jul 29, 2010

I just moved all my songs over to my samba share server. I've been meaning to do it for a while and I finally did. Before that I had all my songs locally and if I needed to delete something I didn't want I could do it straight from Rhythmbox as I was listening to it (instead of tediously going through a file browser and manually deleting it).

However, now that I've put everything on to the samba share (which I've mapped to /home/chris/Music in my fstab as CIFS) I cannot delete anything from Rhythmbox. I get an "Operation not supported by backend" error. However, I can delete, copy, paste, create and do anything else fine in nuatilus, windows explorer or a terminal from any computer.

Why would I be getting this error? I'm 99.9% sure it's not a samba issue. Is it possible that Rhythmbox cannot handle remote shares except reading from them? The only workaround I can think of is to keep files both locally and on the samba share and to also create a two way sync between the two root "Music" folders. Anything updated or deleted on either end would be populated across the other. But my point here is that I shouldn't have to. I would like to just keep it simple, plus the point of having the samba share is to free up space on my local end as well as making all the songs available over the network.

View 5 Replies View Related

Ubuntu :: How To Delete A Directory

Jan 24, 2010

I'm trying to delete the mythtv directory in my /Home directory. I tried rm and rmdir with sudo but that didn't work and I got an error message that said the directory wasn't empty. Then I tried 'sudo -Rf rmdir mythtv', but I keep getting an invalid option error. -R was for recursive right? Is there someway to remove this directory?

View 7 Replies View Related

Ubuntu :: Trying To Delete Directory?

Mar 16, 2010

I removed a user account from my installation of 9.10 however that does not remove the users home directory, which I also want to do. I emptied the directory as as best I can tell, that is ls returns nothing in the directory. However when I run sudo rmdir josephI getrmdir: failed to remove `joseph': Directory not empty

View 8 Replies View Related

Ubuntu Networking :: Cant Edit / Delete Files Over Samba From Windows?

Jan 2, 2010

I just installed Ubuntu server 9.04 and am try to get it all set up but Ive run into a snag with Samba. I cant delete, add, or change files from my windows machine like I could before. Here is my minimalist Samba config that I used on my old ubuntu server:

Quote:

[global]
server string = %h server (Samba, Ubuntu)
security = SHARE
map to guest = Bad User
obey pam restrictions = Yes

[Code]....

Im sure its just one small thing Im forgetting..Its been a while since I played around with my server!

View 1 Replies View Related

Server :: Delete Printer Driver From Samba/cups Setup?

Feb 4, 2010

I wish to update the drivers for a printer which is being shared using samba - can I just upload the new drivers and overwrite the old or do I need to delete the old drivers before uploading the new ones

View 3 Replies View Related

General :: Run Password Protected Exe?

Feb 16, 2011

I want to run a exe file and after run that it demands a password to dycript the contained data. I have the password but dont know to how to execute this in command promp

View 6 Replies View Related







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